Announcement

Collapse
No announcement yet.

Adding UPC for parent child

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

    Adding UPC for parent child

    i already put in my code in Product Display Layout that will generate my upc

    <mvt:item name="customfields" param="Read_Product_Code(g.Product_Code, 'upc', g.upc)" />
    <br> UPC: &mvte:global:upc;

    but now i would like it to change when a size or color is selected for that item


    Am i missing something or cam it not be done ?

    #2
    Because you need to display a value based on the attribute the customer selects, the only way to do this is via JavaScript. There are two methods:

    1. Load all inventory variants and their UPCs on page load into a JSON structure and then display the correct one based on what the user selects
    2. On selection make an ajax call to get the correct UPC.

    Either option will require 3 to 5 hours of development time to add. I'll see if I can find some sample code I can post here.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Hi Alex, as it happens, I've just completed a module that does something very similar to what you're looking for. If you're interested in a custom solution, you can drop me a line by email to discuss the details.

      Thanks --
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment

      Working...
      X