Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    46
    Plugin Contributions
    0

    help question Product Listing Page - Can I make the Buy Now Button Go to Product page?

    When I view all products in a category, if the product has attributes and you click more info, you will go to the Product info page. But if there is no attributes and you click buy now, it will add the product to the cart.

    I would prefer to set my website to ALWAYS take the customer to the product info page, not to just add the product to the cart.

    How can I change this setting? (btw, I have changed all more info wording into Click Here)

    The main page in question is my Artists collection page, which you can view by following this link -

  2. #2
    Join Date
    Mar 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: Product Listing Page - Can I make the Buy Now Button Go to Product page?

    *Update* I fixed the problem, not sure if this is how I was suppose to fix it, but it works.

    Here is what I did for future users with the same issue.

    I fixed the issue by editing the product_listing.php file located in includes/modules/my_templates_name/ directory.

    At line 149 I change this coding -

    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br><br><a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';

    To this -

    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br><br><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';

    And now zencart works the way I wanted it to work.

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,158
    Plugin Contributions
    12

    Default Re: Product Listing Page - Can I make the Buy Now Button Go to Product page?

    The only problem with that is that you are likely to annoy your customers who actually expect the buy Now button to do just that, not take them to another page.
    The JSWeb Team
    www.JSWeb.co.uk
    PCI Compliant Host Provider (UK/IRELAND) - ZenCart Specialists

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    4,478
    Plugin Contributions
    121

    Default Re: Product Listing Page - Can I make the Buy Now Button Go to Product page?

    I agree with Ryk - possibly mitigate this by using the "More Info" button instead?
    Scott C Wilson, That Software Guy, Plugin Moderator
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  5. #5
    Join Date
    Mar 2009
    Posts
    46
    Plugin Contributions
    0

    Default Re: Product Listing Page - Can I make the Buy Now Button Go to Product page?

    That's why I labeled the button Click Here, instead of buy now. Already thought of that and my sales have increased by making that change.

 

 

Similar Threads

  1. Can I make the "add to cart" button refresh the product listing page?
    By quarrymen1 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Jun 2010, 02:47 PM
  2. Can I make a New Product listing (page)?
    By jonhebert in forum General Questions
    Replies: 3
    Last Post: 19 Mar 2010, 01:30 AM
  3. how to put a add to cart button on every product in product listing page??
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Sep 2007, 05:47 AM
  4. how to make 2 different product listing page???
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Sep 2007, 01:04 PM
  5. add button in product listing page
    By dannyd in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Feb 2007, 05:41 AM

Bookmarks

Posting Permissions

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