Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default product_listing.php

    I am trying to adapt the way that the products are displayed in the product listing when they have attributes.

    I am looking at the code in product_listing.php.

    Oh and I guess I should say that I have the flexible_product_listing mod installed.

    I am puzzled because the links I have managed to produce work in ways that are unexpected! In the code I have added an elseif to specify when the product has attributes. That works fine. So, I can customise the code for this circumstance. So far so good.

    To check it I copied the default BUY NOW button code into this elseif. I thought that this would produce a buy now button that behaved in the same way as the default BUY NOW button.

    On the page the links associated to the buttons look the same.

    Code:
    http://www.starlessriver.com/shop/index.php?main_page=index&cPath=1&sort=20a&action=buy_now&products_id=6
    is one of the the two links. This is the no attributes link and takes you as expected to the shopping cart.

    The other one is:

    Code:
    http://www.starlessriver.com/shop/index.php?main_page=index&cPath=1&sort=20a&action=buy_now&products_id=5
    Which looks very similar but takes you to the product info page.

    I must be missing something. I want them both to link to the shopping cart.

    The page that I am referring to is http://www.starlessriver.com/shop/in...ath=1&zenid=c8. I will attach my product_listing.php file.

    Thanks in advance

    Nik
    Last edited by niccol; 9 Jun 2009 at 06:16 PM.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

 

 

Similar Threads

  1. HTML in product_listing.php v1.5x
    By littlepunk29 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 19 Mar 2013, 05:47 PM
  2. php files called when accessing product_listing.php page
    By Tonyy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 Dec 2011, 12:46 AM

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