Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    43
    Plugin Contributions
    0

    Default Display Cart After Adding Product with custom template

    Hi,
    In my Admin/My Store Display Cart After Adding Product = false, but i've noticed whilst adding products from the new products module i'm confronted with a message: Page Not Found
    Custom 404 Error Page with Site Map Sample Text ...

    Even though my item is added to my cart, i don't want this message to appear. It's as if my page dosen' refresh?

    I've tested different possibilites in new_products.php without any joy.
    I'm really stuck on this one, please help?

    cheers

    baz°

    see below in bold the code i'm using:

    //$product_info_str .= '<a href="' . zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products->fields['products_id']) . '">' . '<img src="'. DIR_WS_TEMPLATE_IMAGES .'az_buy_now.gif" class="noborder" alt="" />' . '</a>';
    $product_info_str .= '<a href="' . zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products->fields['products_id']) . '">' . '<img src="'. DIR_WS_TEMPLATE_IMAGES .'az_buy_now.gif" class="noborder" alt="" />' . '</a>';
    //$product_info_str .= '<a href="' . zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_ADD_TO_CART, BUTTON_ADD_TO_CART_ALT) . '</a>';
    //$product_info_str .= '<a href="' . zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products->fields['products_id']) . '">' . '<img src="' .BUTTON_IMAGE_ADD_TO_CART . '" class="noborder" alt="" />' . '</a>';

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Display Cart After Adding Product with custom template

    This seems to be related to your other post: http://www.zen-cart.com/forum/showthread.php?t=104128

    And probably also your other one about the same topic: http://www.zen-cart.com/forum/showthread.php?t=93610
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139h Page not display after adding a product to the cart
    By versitek in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 9 Dec 2012, 03:45 AM
  2. Display Shopping Cart After Adding Product
    By Semenek in forum General Questions
    Replies: 1
    Last Post: 12 Sep 2010, 04:09 AM
  3. Shopping Cart wont display after adding product to cart
    By fmf_tactical in forum General Questions
    Replies: 2
    Last Post: 6 Mar 2009, 03:43 AM
  4. Display Cart After Adding Product based on Product Type?
    By dharma in forum General Questions
    Replies: 2
    Last Post: 26 Jun 2008, 11:31 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