Announcement

Collapse
No announcement yet.

Using "related_items" code block in new tab on liting_4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using "related_items" code block in new tab on liting_4

    Hello,

    I want to use the "related_items" code block in a new tab on listing_4 template:

    <!--START: related_items0-->
    <table cellspacing="0" cellpadding="5" border="0" width="99%" class="alternative">
    <tr>
    <!--Tama o thumbnail--><td align="center" height="150"><div style="overflow: hidden; height: 150px;"><a href="product.asp?itemid=3474"><img src="thumbnail.asp?file=[THUMBNAIL]&maxx=120&maxy=0" alt="[name]" border="0"></a></div></td>
    </tr>
    <tr>
    <td class="item" align="center" height="30"><a href="product.asp?itemid=3474">[name]</a></td>
    </tr>
    <!--START: product_review-->
    <tr>
    <td class="price-info" colspan="2" align="center"><!--START: product_review_average-->

    <table border="0" cellspacing="0" cellpadding="1">
    <tr>
    <td><img src="assets/templates/common/images/star0.png" alt="Average Rating" border="0"></td>
    <td class="item">0 Review(s)</td>
    </tr>
    </table>
    <!--END: product_review_average--></td>
    </tr>
    <!--END: product_review-->
    <tr>
    <td class="price2" valign="top" align="center"><!--START: ITEMPRICE-->[product_yourprice] [ITEMPRICE]
    <!--END: ITEMPRICE-->
    <!--START: SALEPRICE-->
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td colspan="2" align="center" class="item" nowrap="nowrap"><s>[product_yourprice] [ITEMPRICE]</s></td>
    </tr>
    <tr>
    <td colspan="2" align="center" class="item" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="2">
    <tr>
    <td nowrap="nowrap" class="price2">[product_onsale]: [ITEMSALEPRICE]</td>
    <td align="right"><img src="assets/images/Liquidacion/on_sale.png" alt="On Sale" hspace="5" border="0"></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <!--END: SALEPRICE--></td>
    </tr>
    <tr>
    <td class="item" align="center" valign="middle"><input type="button" value="[category_buyitlink]" onclick="window.location='add_cart.asp?quick=1&ite m_id=[catalogid]'" class="btn" onmouseover="this.className='btn_over'" onmouseout="this.className='btn'" /></td>
    </tr>
    </table>
    <!--END: related_items0-->



    I am trying to change the variable "catalogID" for the number of my products, but it does not work.

    Have you ever tried something like that?

    In addition to related items tab and upselling items section, I need another tab with accesories, but I want that this tab has the same design that related items tab.

    What do you recommend?

    Thanks in advance and best regards.

  • #2
    Originally posted by ManuelChin View Post
    I am trying to change the variable "catalogID" for the number of my products, but it does not work.

    Can you be more specific with what you are trying to do and what is not working?

    Comment


    • #3
      If I go to products -> view edit, every product has a catalog ID number, in "related items" block, I am changing the "catalogID" variable for this number...

      Example:
      <!--Tama o thumbnail--><td align="center" height="150"><div style="overflow: hidden; height: 150px;"><a href="product.asp?itemid=3474"><img src="thumbnail.asp?file=[THUMBNAIL]&maxx=120&maxy=0" alt="[name]" border="0"></a></div></td>

      where 3474 is my product.

      If you need more info, please let me know.

      Thanks....

      Comment


      • #4
        I really do not understand what it is you want to happen, and what is happening.

        Comment


        • #5
          It looks like your asking 3 questions in 1.

          I think you mean:
          1) You would like your Related Items to be on a tab in listing_4
          2) You are trying to change the catalogID of the related Item to the product item it is relating to...?
          3) Make a tab with Accessories that will relate to the item

          Is this correct?
          - Peace
          www.ifilters.net

          Comment


          • #6
            Hi,

            It seems that I did all this very confusing.

            I try to explain again:
            - When I add related items to a product, a new tab in listing_4 is created automatically.
            - I want to add the same code of "related items" tab in a new tab (field 9) and specify what products must appear in this tab.

            I hope I have explained better

            Thanks...

            Comment


            • #7
              To my knowledge you cant duplicate the same codeblock for "related items" in the same template. Having 2 of the same in one template wouldnt make much sense.

              What is it you are trying to accomplish?

              Would using the "Up-selling" codeblock work for what you are trying to do?
              - Peace
              www.ifilters.net

              Comment


              • #8
                I want to separate related products and related accesories. So I want to use the same code block form related products in related accesories.

                Thanks.

                Comment


                • #9
                  I would suggest using the Upselling section.
                  I have never used it but if I had items that needed it I would.

                  You can use it like this -
                  Say you are selling an iphone (iPhone 5).
                  The related items can be other apple products like an iPad and iPod.
                  Your Accessories can be the upselling items like a charger, screen protector and a case.
                  - Peace
                  www.ifilters.net

                  Comment

                  Working...
                  X