Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

I Want To Clone The Cart Page, And Have A Second Add To Cart Button That Send Item To A Different Cart List? Rate Topic   - - - - -

 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 01 January 2021 - 06:55 PM #1

I know there're few things i need to duplicate to achieve this can someone suggest the best way to get this done?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21980 posts

Posted 04 January 2021 - 06:11 AM #2

Wishlist?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 04 January 2021 - 07:45 PM #3

Yes i want to have another list called watch list and another called collection list



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12071 posts

Posted 04 January 2021 - 09:04 PM #4

Sounds a bit confusing for customers....As @Ecom notes, the 'whishlist' is effectively an alternate cart.  If you can't meet your needs through a single additional cart (you can easily rename it with the language variables) then you will need to copy/clone the functionality and either add a 'type' to the wishlist or completely duplicate the methods/interface for adding to it and managing it.

 

Can you describe the business purpose for all these different carts?


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 04 January 2021 - 09:10 PM #5

Sounds a bit confusing for customers....As @Ecom notes, the 'whishlist' is effectively an alternate cart.  If you can't meet your needs through a single additional cart (you can easily rename it with the language variables) then you will need to copy/clone the functionality and either add a 'type' to the wishlist or completely duplicate the methods/interface for adding to it and managing it.

 

Can you describe the business purpose for all these different carts?

The second cart will act as a buy it now channel, a cart i can clear then add the last item and go to checkout, without clearing the main cart. i have a buy now button that clears the cart and takes the last item to checkout but i want to keep the cart items and there's no way to exclude these items from the checkout and take the last one, this second cart will serve as a buy now route while the other serves as regular cart



 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 04 January 2021 - 09:14 PM #6

I also want to have a list called watch list and collection list where customers can save their item


I also want to have a list called watch list and collection list where customers can save their item

just like wish list



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12071 posts

Posted 04 January 2021 - 09:25 PM #7

The second cart will act as a buy it now channel, a cart i can clear then add the last item and go to checkout, without clearing the main cart. i have a buy now button that clears the cart and takes the last item to checkout but i want to keep the cart items and there's no way to exclude these items from the checkout and take the last one, this second cart will serve as a buy now route while the other serves as regular cart

if all you want to do is add a single item to the cart and proceed to checkout you could certainly look into modifying the free my_changes 'mode' that will enable you to add a product and proceed to checkout.  I.e. you would alter the existing cart to your liking (or save it to a wishlist).  You can get the module here: private/unsupported_scripts/checkout.pre.php.txt

 

The script is old but it should still work properly.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 05 January 2021 - 01:09 AM #8

I tried this it didn't work, i want this to work like ebay, you can buy one item even tho you have other items in cart



 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 05 January 2021 - 01:26 AM #9

how can i copy the cart content to compare list before running fn_clear_cart($cart); and the transfer cart content back to cart?

or save the cart item on session before running fn_clear_cart($cart);  then restore after checkout?? thanks



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21980 posts

Posted 05 January 2021 - 06:53 AM #10

I tried this it didn't work, i want this to work like ebay, you can buy one item even tho you have other items in cart

 

Please also pay attention to Buy in 1-click functionality


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 05 January 2021 - 04:26 PM #11

Please also pay attention to Buy in 1-click functionality

Yes this takes other items in the cart as well to checkout



 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 05 January 2021 - 04:27 PM #12

I want it to take only the item a to checkout ignoring other items b, c, d in cart already, after checkout i can still see those items in cart



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12071 posts

Posted 05 January 2021 - 07:09 PM #13

As said in #7, the script can be modified to do just the one item you want to purchase.  But it will require modification.  If you would like a quote to do so, please use the get a quote link in my signature and specify all your requirements surrounding that project.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 05 January 2021 - 10:25 PM #14

As said in #7, the script can be modified to do just the one item you want to purchase.  But it will require modification.  If you would like a quote to do so, please use the get a quote link in my signature and specify all your requirements surrounding that project.

I tried to use the code you shared, i don't know how to skip the other cart content b,c,d and not include them when product a is added to checkout with the buy now button, that's the problem



 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 06 January 2021 - 03:16 PM #15

how can i do that?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12071 posts

Posted 06 January 2021 - 08:25 PM #16

Again, since you do not understand the code, you should hire a developer to help you.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Dexterflamez
  • Senior Member
  • Trial users
  • Join Date: 08-Jan 18
  • 312 posts

Posted 06 January 2021 - 11:14 PM #17

I don't have the money to hire a developer, that's why I'm asking, this question is still open for new suggestions, thanks