Totally Zenned
- Join Date:
- Jan 2013
- Location:
- New Port Richey, Florida
- Posts:
- 971
- Plugin Contributions:
- 0
adding add to cart button in cvv popup
zen 2.10
php 8.3
trying to repurpose the cvv help popup
i have reworded what i want it to say.
i put this in tpl product info display to test it. ```
iwould like to replace existing add to cart button with this popup.
it would like it display when customer chooses more quantity than in stock.
this is in tpl_main_page in popup cvv page ```
<?php
/**
* tpl_main_page.php
*
* @copyright Copyright 2003-2022 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: DrByte 2020 Jul 10 Modified in v1.5.8-alpha $
*/
?>
<body id="popupCVVHelp">
<h3><?php echo HEADING_CVV ?></h3>
<div><?php echo TEXT_CVV_HELP1 ?></div>
<h3><?php echo HEADING_CVV2 ?></h3>
<div><?php echo TEXT_CVV_HELP2 ?></div>
<div><?php echo '<a href="javascript:window.close()">' . TEXT_CLOSE_CVV_WINDOW . '</a>'; ?></div>
<div><?php echo '<a class="button btn tt-btn-addtocart thumbprod-button-bg btn-opt" href="' . zen_href_link($zen_get_info_page, 'cPath=' . $cPath . '&products_id=' . $listing->fields['products_id']) . '" '.wtExtraBtnLink($listing).'><span class="qck-text">' . TITLE_SELECT_OPTIONS . '</span></a>'; ?></div>
</body>
how do i go about making the add to cart button add the items to cart from the popup.
similar to this site jnsflooringandsupplies.com/images/uploads/Screenshot%202025-12-29%20192614.jpg