Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Show Popup message after clicking In den Warenkorb button.

    papalife

    • Mitglied
    • Beiträge: 174
    Hello Team,

    I would like to show a popup message after clicking the button In den Warenkorb but I cant figure out in which file I can do this. I think the file root/includes/modules/product_info.php is the correct but I am not sure. Can someone help me please?

    Thanks,
    Apo

    Linkback: https://www.modified-shop.org/forum/index.php?topic=29998.0

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.989
    • Geschlecht:
    Re: Show Popup message after clicking In den Warenkorb button.
    Antwort #1 am: 22. April 2014, 17:54:14
    If you wish a javascript generated popup you define a jQuery-function for this, implement it in
    /templates/YOUR_TEMPLATE/javascript/general.js.php (only loading on product_info pages)
    and call that function in the cart button using the onclick-event in
    /includes/modules/product_info.php.

    e.g.:
    Code: PHP  [Auswählen]
    $info_smarty->assign('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'onclick="YOUR_FUNCTION()"'));

    For a PHP fallback you would have to edit /includes/cart_actions.php and also /includes/modules/product_info.php.

    Regards,
    noRiddle
    0 Antworten
    4036 Aufrufe
    24. Februar 2009, 21:37:53 von Dome
    2 Antworten
    3069 Aufrufe
    09. April 2010, 09:16:12 von Bcoola
    1 Antworten
    2984 Aufrufe
    02. Januar 2014, 18:33:51 von sv.brueck
               
    anything