Amo Coupon Pro and vm attribute cart variations


  • Default avatar
    barbara1    
     a year ago
    0

    Hi,
    i would like to know if there's a way to manage attribute cart variations in gift certificate profile?

    Thank you
  • Your avatar
    seyi    
     a year ago
    0

    Hello,

    By manage attributes in profiles, you mean use it as a tag? No, unfortunately, there is not.
  • Default avatar
    barbara1    
     a year ago
    0

    Do you think you will solve this?
    Because we have many products with attribute cart variations and the gift are not update, they contain always only the principal product name and price.

    Thank you
  • Your avatar
    seyi    
     a year ago
    0

    Hello,

    Try this:
    in www/administrator/components/com_awocoupon/helpers/estore/estoregiftcerthandler.php, around line 122 of the latest is this:
    <?php
                        $allcodes
    [$this_mail_key['email']][] = array(
                            
    'id'=>$coupon_row->id,
                            
    'order_item_id'=>$row->order_item_id,
                            
    'user_id'=>$row->user_id,
    ?>


    Right before that, add this:
    <?php
    $row
    ->customProductData json_decode ($row->product_attributeTRUE);
    $customfieldModel VmModel::getModel('customfields');
    foreach(
    $row->customProductData as $custom){
        if(!
    is_array($custom)) $custom = array( $custom =>false);
        foreach(
    $custom as $id=>$field$row->customfields[] = $customfieldModel-> getCustomEmbeddedProductCustomField($id);
    }
    if(!empty(
    $row->customfields)) {
        
    $attribute_extra = array();
        foreach(
    $row->customfields as $customfield$attribute_extra[] = vmText::_($customfield->customfield_value);
        
    $row->order_item_name .= ' - '.implode(', ',$attribute_extra);
    }
    ?>
  • Default avatar
    barbara1    
     a year ago
    0

    Thank you, i will try.