Μου έχουν δώσει τις ρυθμίσεις για εγκατάσταση του BestPrice 360º σε opencart eshop,
Το extension το δικό τους που έχουν φτιάξει δεν δουλεύει και μου λένε ότι κάνει κάποιο conflig με το theme (journal3) ή με κάποιο άλλο πρόσθετο, άρα μου έδωσαν τις παρακάτω οδηγίες: https://github.com/TheBestCo/bestprice-360
If your store is not based on any of the platforms listed above, you can install the script using the "manual" method that follows.
Snippet
Place the following snippet right before closing the </body> tag (not inside <head>).
NOTE: The snippet need to be added to the product page and to the cart page. Ideally, though, it should be added to all pages.
Make sure you replace the BESTPRICE_360_KEY_HERE with the BestPrice 360 key provided by the BestPrice Team.
<script>
(function (a, b, c, d, s) {a.__bp360 = c;a[c] = a[c] || function (){(a[c].q = a[c].q || []).push(arguments);};
s = b.createElement('script'); s.async = true; s.src = d; s.charset = 'utf-8'; (b.body || b.head).appendChild(s);})
(window, document, 'bp', '//360.bestprice.gr/360.js');
bp('connect', 'BESTPRICE_360_KEY_HERE');
</script>
Actions
In order to track orders and products, the following two methods are to be used.
addOrder
bp('addOrder', {
orderId: '123456', // Order ID (alias: order_id) [Required]
revenue: '1315.25', // Grand Total (Cost + Tax + Shipping) [Required]
shipping: '5.45', // Shipping Cost [Required]
tax: '301.25', // Tax [Required]
method: 'card|paypal|ondelivery|deposit|atstore', // [Optional]
currency: 'euro', // [Optional]
// products: [] // You can pass them here
});
addProduct(s?)
bp('addProduct', {
orderId: '123456', // Order ID (alias: order_id) [Required]
productId: '111222', // Product ID (alias: product_id) [Required]
title: 'Apple IPhone 11 (64GB) Red EU', // Product Title (alias: name) [Required]
price: '654.90', // Price, should include tax [Required]
quantity: '2' // Quantity [Required]
});
Or, you can pass an array like so:
bp('addProduct', [products]);
Που θα περαστούν αυτές οι πληροφορίες;