Announcement

Collapse
No announcement yet.

Show Product SKU in basket

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

    #16
    Re: Show Product SKU in basket

    Can I ask what you used to structure your urls? I've been trying to use the SEO short links.

    Comment


      #17
      Re: Show Product SKU in basket

      I edited the page templates to reflect the url style I wanted.
      Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
      Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
      Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
      Facebook http://www.facebook.com/EmporiumPlus
      Twitter http://twitter.com/emporiumplus

      Comment


        #18
        Re: Show Product SKU in basket

        I'm not sure what that means.

        I thought the choices for building urls, without the use of a plugin, was to use the default way that Miva generates urls, or use the new SEO features to generate urls.

        Are you saying that you can freely form urls as long as they contain the Product Code?

        Can you provide a snippet of sample code from one of your page templates that illustrate your method?

        Comment


          #19
          Re: Show Product SKU in basket

          Here is an example. I think there is a tutorial on this particular style.
          http://www.yourdomain.com/pc/&mvta:p...duct:name.html
          The key is your .htaccess file parses the sections and rewrites it to the long url. So the above would be rewritten by the .htaccess to
          http://www.yourdomain.com/mm5/mercha...gory_Code=bbbb and the product name is ignored. The search engine sees the directory style url. The .htaccess rewrites that to a url that merchant can use.
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment


            #20
            Re: Show Product SKU in basket

            Hi

            I am trying to get the product SKU or the Variant SKU to show up in the basket. I have it working where it shows the main product sku but if the product has variants i don't know how to get the variant sku to display.

            Here is some code in my basket contents: The item in bold is where I think the variant code would go.

            <mvt:foreach iterator="option" array="group:options">
            <mvt:if expr="l.settings:option:option_id"> &mvt:option:attr_code;: &mvt:option:opt_code; : &mvt:option:opt_prompt; <mvt:item name="toolkit" param="vproduct_find|prdfound|l.all_settings:item: code" />



            <mvt:elseif expr="NOT ISNULL l.settings:option:data">
            &mvt:option:attr_code;: &mvt:option:data;
            <mvt:elseif expr="NOT ISNULL l.settings:option:data_long">
            &mvt:option:attr_code;: &mvt:option:data_long;
            <mvt:else>
            &mvt:option:attr_code; </mvt:if>
            <br/>
            </mvt:foreach>
            </div>

            <span class="item-code">
            <mvt:if expr="l.settings:group:product:sku">
            SKU: &mvt:group:product:sku;
            <mvt:else>
            SKU: &mvt:group:code;
            </mvt:if>


            Thank you!

            Comment

            Working...
            X