Announcement

Collapse
No announcement yet.

Adding Components to the Mini Cart

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

    Adding Components to the Mini Cart

    Hi. I am using the miniCart() function by Graham Bradley- show a mini cart summary on the product page. it is working fine but does not show me the component being bought just the product name.

    The function uses:

    Code:
    [GetProduct($pCartItem->{'PRODUCT_REFERENCE'}, $pCartItem->{'SID'});
    to get the product hash ($pProduct). and displays the product name by accessing the element :

    Code:
    ($pProduct->{'NAME'}
    I do not really understand what is in the array ($pProduct) and I am struggling to figure out how it is populated. I have tried replacing NAME with CHOICE and ATTRIBUTE but these return blanks.

    I was hoping someone could tell me whether in fact $pProduct contains the choices?

    If not whether $pCartItem might contain it (as it has $pCartItem->{'QUANTITY'} )?

    Any documentation or information on these arrays would be brilliant too.

    Many thanks in advance.

    Tony
    Tony
    www.secretgardenquilting.co.uk

    #2
    Hi. After some off line help I have managed to locate the field you need to add in the mini cart to show the permutation selected : $pCartItem->{'COMPONENT_1'}. This return the permutation number.
    Tony
    www.secretgardenquilting.co.uk

    Comment

    Working...
    X