Announcement

Collapse
No announcement yet.

Toolkit Emporium Plus - ALSOBOUGHT module

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

    Toolkit Emporium Plus - ALSOBOUGHT module

    Hi,
    Can someone please help me using the alsobought feature in toolkit. Is there a way to hide products if I input "clearance" for the product SKU? If so, what is the code line I add to the ALSOBOUGHT code below? Thank you! KD

    <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :alsobought">
    <mvt:item name="toolkit" param="vquick|pcount|l.all_settings:product:custom field_values:customfields:alsobought" />
    <mvt:if expr="pcount GT 0">
    <br>
    <table border="0">
    <tr>
    <td align="center" colspan="3">
    <mvt:item name="fonts" param="hdr_font">
    Customers who bought &mvt:product:name; also bought these products
    </mvt:item>
    </td>
    </tr>
    <mvt:foreach iterator="quicklist" array="quicklists">
    <tr>
    <td align="left" valign="top">
    <mvt:if expr="NOT ISNULL l.settings:quicklist:thumbnail">
    <img src="&mvt:quicklist:thumbnail;" border="0" width="50" height="50" alt="&mvta:quicklist:name;">
    <mvt:else>
    <img src="/mm5/graphics/en-US/admin/blank.gif" border="0" width="50" height="50" alt="&mvta:quicklist:name;">
    </mvt:if>
    </td>
    <td align="left" valign="top">
    <mvt:item name="fonts" param="body_font">
    <a href="&mvt:global:sessionurl;Screen=PROD&Product_C ode=&mvta:quicklist:code;">
    &mvt:quicklist:name;</a>
    </mvt:item>
    </td>
    <td align="left" valign="top">
    <mvt:item name="fonts" param="body_font">
    &mvt:quicklist:formatted_price;
    </mvt:item>
    </td>
    </tr>
    </mvt:foreach>
    </table>
    </mvt:if>
    </mvt:if>

    #2
    Re: Toolkit Emporium Plus - ALSOBOUGHT module

    Try this:

    Code:
    <mvt:if expr="(NOT ISNULL l.settings:product:customfield_values:customfields:alsobought) AND (l.settings:product:sku NE 'clearance')">

    Comment


      #3
      Re: Toolkit Emporium Plus - ALSOBOUGHT module

      Hi Leanne,
      Thank you for getting back.

      I replaced:

      <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :alsobought">

      with

      <mvt:if expr="(NOT ISNULL l.settings:product:customfield_values:customfields :alsobought) AND (l.settings:product:SKU NE 'clearance')">


      however, my clearance items still shows up. I have "clearance" for the SKU on my Product Details page. Do you have any suggestions?

      Thanks,
      Keith

      Comment


        #4
        Re: Toolkit Emporium Plus - ALSOBOUGHT module

        Here is the actual code I updated but didn't hide the SKU "clearance" product.





        <mvt:if expr="(NOT ISNULL l.settings:product:customfield_values:customfields :alsobought) AND (l.settings:product:sku NE 'clearance')">

        <mvt:item name="toolkit" param="vquick|pcount|l.all_settings:product:custom field_values:customfields:alsobought" />
        <mvt:if expr="pcount GT 0">
        <br>
        <table border="0">
        <tr>
        <td align="center" colspan="3">
        <p align="left">
        <mvt:item name="fonts" param="hdr_font">
        Customers who bought <font color="#1B79BE">"&mvt:product:name;" </font> also bought:</mvt:item></td>
        </tr>










        <mvt:foreach iterator="quicklist" array="quicklists">
        <tr>
        <td align="left" valign="top">


        <mvt:item name="toolkit"
        param="customimage|big|l.all_settings:quicklist:id |main" />
        <a href="/&mvta:quicklist:code;.html">
        <img src="&mvt:global:imageroot;&mvte:global:big;">
        </a>


        </td>
        <td align="left" valign="middle">
        &nbsp;<p>&nbsp;</p>
        <p>
        <mvt:item name="fonts" param="body_font">
        <a href="/&mvta:quicklist:code;.html">
        &mvt:quicklist:name;</a>
        </mvt:item>
        </td>
        <td align="left" valign="middle">
        &nbsp;<p>&nbsp;</p>
        <p>
        <mvt:item name="fonts" param="body_font">
        &mvt:quicklist:formatted_price;
        </mvt:item>
        </td>
        </tr>
        </mvt:foreach>
        </table>
        </mvt:if>
        </mvt:if>

        Comment


          #5
          Re: Toolkit Emporium Plus - ALSOBOUGHT module

          Is the sku clearance or Clearance?

          Comment


            #6
            Re: Toolkit Emporium Plus - ALSOBOUGHT module

            It is actually "discontinued"

            I just use clearance as an example. I wish to discontinue items but not make them inactive. Would like to still keep live.

            Comment


              #7
              Re: Toolkit Emporium Plus - ALSOBOUGHT module

              Aha. In that case, the code would be:

              Code:
              <mvt:if expr="(NOT ISNULL l.settings:product:customfield_values:customfields:alsobought) AND (l.settings:product:sku NE 'discontinued')">

              Comment


                #8
                Re: Toolkit Emporium Plus - ALSOBOUGHT module

                I did change the clearance to discontinued but it didn't hide the product.

                Comment

                Working...
                X