Jump to content

geowv

Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Location
    volo
  • Activity
    Developer

geowv's Achievements

Newbie

Newbie (1/14)

  • One Year In Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

1

Reputation

  1. σε περίπτωση που κάποιος εχει το codfee module το οποιο προσθετει την αντικαταβολή σαν προιον και αθροίζει στο γενικό σύνολο αυτη ειναι μια λυση που καταφερα και μου δούλεψε... skroutzanalytics/views/templates/hook/skroutzanalytics.tpl <!-- Skroutz Analytics Order Products Script start --> <script> {foreach from=$order_products item=product} {if $product.product_id eq 'το id που ειναι αντιστοιχισμενο στο codfee'} {assign var='feem' value=$product.product_price_wt} {else} {assign var='feem' value=0} {/if} {/foreach} {literal} sa('ecommerce', 'addOrder', JSON.stringify({ order_id: '{/literal}{$order->id_cart}{literal}', // Order ID. Required. revenue: '{/literal}{$order->total_products_wt + $order->total_shipping_tax_incl - $feem }{literal}', // Grand Total. Includes Tax and Shipping. shipping: '{/literal}{$order->total_shipping_tax_incl}{literal}', // Total Shipping Cost. tax: '{/literal}{$taxamt = $order->total_paid_tax_incl - $order->total_paid_tax_excl}{$taxamt}{literal}' // Total Tax. })); {/literal} </script> <script> {foreach from=$order_products item=product} {if $product.product_id eq 'το id που ειναι αντιστοιχισμενο στο codfee'} {else} {literal} sa('ecommerce', 'addItem', JSON.stringify({ order_id: '{/literal}{$order->id_cart}{literal}', // Order ID. Required. product_id: '{/literal}{$product.product_id}{literal}', // Product ID. Required. name: '{/literal}{$product.product_name}{literal}', // Product Name. Required. price: '{/literal}{$product.product_price_wt}{literal}', // Price per Unit. Required. quantity: '{/literal}{$product.product_quantity}{literal}' // Quantity of Items. Required. })); {/literal} {/if} {/foreach} </script> <!-- Skroutz Analytics Order Products Script end -->
×
×
  • Create New...