Jump to content

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

Mode When Cart Pop Ups, Wishlist, Compare Rate Topic   - - - - -

 
  • mokeshop
  • Senior Member
  • Members
  • Join Date: 27-Jul 12
  • 1005 posts

Posted 31 October 2018 - 08:10 PM #1

hello, im playing little bit with one addon , but cant find which mode is controlling the cart when something is added to cart and popus up, the wishlist page, and compare page....

 

$mode == 'view' || $mode == 'options'



 
  • CS-Market
  • Senior Member
  • Authorized Reseller
  • Join Date: 06-Mar 13
  • 675 posts

Posted 31 October 2018 - 09:44 PM #2

but cant find which mode is controlling the cart when something is added to cart and popus up

 

In this case the system runs the 'checkout' controller with the 'add' mode. So in your test add-on you need to create controllers/frontend/checkout.[post_or_pre].php file (in demand if you want to run it before or after 'main' controller) with the mode:

if ($mode == 'add') {

}
the wishlist page

 

In this case the system runs in the 'wishlist' controller with the 'view' mode. But the addition to wishlist works in the 'wishlist' controller with the 'add' mode.

 

and compare page

 

In this case the system runs in the 'product_features' controller with the 'compare' mode. But the addition to comparison list works in the 'product_features'controller with the 'add_product' mode.


GET A FREE QUOTE  │  CS-Cart add-ons   │   CS-Cart custom development   │  CS-Cart design integration  │  CS-Cart license

Сертифицированный разработчик на CS-Cart Русская Версия. More than 5 years experience in CS-Cart development.


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

Posted 01 November 2018 - 05:04 AM #3

What problem do you want to solve?


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    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • mokeshop
  • Senior Member
  • Members
  • Join Date: 27-Jul 12
  • 1005 posts

Posted 01 November 2018 - 06:47 PM #4

What problem do you want to solve?

 

im playing with the PayPal button addon to have it in the cart also... when cart pop ups.... on the wishlist :) compare list :) i hope you can update the module with this ideas :)



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

Posted 02 November 2018 - 05:20 AM #5

Common template is used for these notifications. It can be found here

 

design/themes/THEME/templates/views/products/components/notification.tpl


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    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.