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.Code:<?php echo '<a href="javascript:popupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . zen_image_button(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</a>'; ?>
it would like it display when customer chooses more quantity than in stock.
this is in tpl_main_page in popup cvv pagehow do i go about making the add to cart button add the items to cart from the popup.Code:<?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>
similar to this site [IMG]jnsflooringandsupplies.com/images/uploads/Screenshot%202025-12-29%20192614.jpg[/IMG]


Reply With Quote
