Jump to content

Strange behaviour when adding product to cart


Recommended Posts

Hello, i have found very strange behaviour when adding product to cart.

I have WHMCS 8.3 with standard cart and template six, all additional modules are disabled.

I have product of type "shared hosting" configured with "One Time/Monthly" only price (it's important).

When following link to this product: /cart.php?a=add&pid=106 i was redirected directly to /cart.php?a=view page with one product shown in the list. It's normal behaviour for this process.

But from time to times i have another behaviour... when i following link /cart.php?a=add&pid=106 (cart has been previously emptied) i was redirected to page /cart.php?a=view and i have TWO of products added in the list.. 

So i doing next steps: Empty Cart -> Follow the /cart.php?a=add&pid=106 link and get two products in the cart... what's going on? 

Link to comment
Share on other sites

1 minute ago, Gricenko Mihail said:

I have product of type "shared hosting" configured with "One Time/Monthly" only price (it's important).

Why it's important? if i configure product with, for example One Time/Monthly and Quarterly pricing option then after following /cart.php?a=add&pid=106 link i was redirected to page /cart.php?a=confproduct&i=1 first to choose billing cycle and after that to /cart.php?a=view with only one product added as expected...

Link to comment
Share on other sites

Hello @Gricenko Mihail

Thank you for your post I tried to click your link however it seems you do not seem to have a product with the ID of 106 setup, if you do the same with another product e.g 87 you will find you are directed to the cart to select a billing cycle, if you are finding this is not happening please provide us with the exact link to the product so we can review it.

Link to comment
Share on other sites

On 3/20/2020 at 2:59 AM, WHMCS ChrisD said:

Hello @Gricenko Mihail

Thank you for your post I tried to click your link however it seems you do not seem to have a product with the ID of 106 setup, if you do the same with another product e.g 87 you will find you are directed to the cart to select a billing cycle, if you are finding this is not happening please provide us with the exact link to the product so we can review it.

 

It's very simple to reproduce, i just setup test environment:

https://stage.wpcomplex.com/cart.php?a=add&pid=1

It's fresh installation of WHMCS 7.8.3 with only one product added, type of product Shared hosting, and one One Time/Monthly price configuration.

You can simply navigate several times to link provided above and see the issue described in original post.

I have recorded short video with demonstration: 

 

Edited by Gricenko Mihail
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated