| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Help Requested on two price in two currency | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Help Requested on two price in two currency
Hello everyone,
I am trying to create a custom mod for show second price in anther currency. No automatic calculation: every product must have 2 fields (Price in US Dollar. USD and price in Egyptian Pound. EGP). Product must have one price in EUR, and can have price in EGP or not. No change in ordering currency. Add two currencies to product.tpl, products.tpl and cart_totals.tpl. Calculate total price for all products in cart with two currencies. Below are the steps I have done. 1- Add new field called (price_eg) in SQL table (xcart_pricing) from phpMyAdmin `price_eg` decimal(12,2) NOT NULL default '0.00' 2- Add second price to product array as follow in func.php modify Code:
Code:
Code:
Code:
3- Add min($sql_tbl[pricing].price_eg) AS price_eg to all query in (search.php) that contain min($sql_tbl[pricing].price) as price 4- At suitable place in (product.tpl) add Code:
Code:
I tray to do this but I can't reach to what I want. Any help that can be offered is greatly appreciated! If what I am asking is not clear just let me know and I will try to further explain. Thanks in advanced!
__________________
X-Cart Platinum 4.6.5 |
|||||||
#2
|
|||||||
|
|||||||
Re: Help Requested on two price in two currency
please, can any one help me.
Just I want to calculate total price for all products in cart with new price (price_eg), please, give me any tips for this
__________________
X-Cart Platinum 4.6.5 |
|||||||
#3
|
|||||||
|
|||||||
Re: Help Requested on two price in two currency
please, can any one help me.
Am I need to change any thing in cart.php
__________________
X-Cart Platinum 4.6.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|