Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    967
    Plugin Contributions
    0

    Default 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.
    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>'; ?>
    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
    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>
    how do i go about making the add to cart button add the items to cart from the popup.
    similar to this site [IMG]jnsflooringandsupplies.com/images/uploads/Screenshot%202025-12-29%20192614.jpg[/IMG]

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,675
    Plugin Contributions
    11

    Default Re: adding add to cart button in cvv popup

    You don't say what template you are using or what your stock settings are in your admin.

    If your stock settings in admin are set to check stock and not allow checkout if the quantity is over what is in stock, and your quantity in your stock is accurate, the system should automatically adjust the amount in the cart to the current quantity on hand and notify the customer with a pop-up stating "Quantity has been adjusted to what is in stock".

    Trying to make this happen on the product's page when the add to cart button is pushed is gonna take a lot mored than just adding an action to the button.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Jan 2013
    Location
    New Port Richey, Florida
    Posts
    967
    Plugin Contributions
    0

    Default Re: adding add to cart button in cvv popup

    products not in stock will ship from manufacturer, so i have to allow checkout,
    i need away to send the quantity chosen by customer to the popup and then send the quantity to the shopping cart from the popup, or if buying more than in stock when they hit add to cart that popup will popup and not disappear without a close

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,675
    Plugin Contributions
    11

    Default Re: adding add to cart button in cvv popup

    What about setting the quantity in stock for items that drop ship to an absurdly high number, no one will ever order? Then, set items not drop-shipped to their actual inventory?

    Set allow checkout to no.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. Show Popup window when Press Add to Cart Button
    By ntestinfo11 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Mar 2011, 05:35 PM
  2. Adding the Add to Cart button to Featured Items
    By dimmyr in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Jan 2009, 06:28 AM
  3. Adding add to cart button to specials sidebox
    By ctcentralinfo in forum Basic Configuration
    Replies: 2
    Last Post: 8 Jun 2008, 05:53 PM
  4. adding add to cart button on each attribute
    By adoy in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 1 Mar 2008, 12:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg