- Posts: 129
- Thank you received: 0
Display total amount of discount in the cart
9 years 5 months ago #267473
by nic7071
Display total amount of discount in the cart was created by nic7071
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
hi,
in checkout cart and cart status view i want to add the total amount of discount used in the cart next to Total amount of purchased!
for example if a user purchased 5 item with 200$ on each product and used 50$ discount for each iwant this to show:
total: 1000$
total discount: 250$
u can pay: 750$
i think i have to add come codes in Show_Block_Cart in Checkout and i appreciate if you can help me do this.
thanks
-- Joomla version -- : 3.6.5
hi,
in checkout cart and cart status view i want to add the total amount of discount used in the cart next to Total amount of purchased!
for example if a user purchased 5 item with 200$ on each product and used 50$ discount for each iwant this to show:
total: 1000$
total discount: 250$
u can pay: 750$
i think i have to add come codes in Show_Block_Cart in Checkout and i appreciate if you can help me do this.
thanks
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267517
by nicolas
Replied by nicolas on topic Display total amount of discount in the cart
Hi,
That's right you need to add code there if you want to do that.
You'll have to loop on the array $cart->products and sum the price_value - price_value_without_discount of each product to be able to get the total amount of discount so that you can just echo it at the correct place, between the sub total and the total blocks of code.
It will require some development skill. If you're not a developer, I encourage you to contact our partners:
www.hikashop.com/home/our-partners.html
That's right you need to add code there if you want to do that.
You'll have to loop on the array $cart->products and sum the price_value - price_value_without_discount of each product to be able to get the total amount of discount so that you can just echo it at the correct place, between the sub total and the total blocks of code.
It will require some development skill. If you're not a developer, I encourage you to contact our partners:
www.hikashop.com/home/our-partners.html
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267524
by nic7071
Replied by nic7071 on topic Display total amount of discount in the cart
Hi Nicolas,
yes, i know that, and i even know the exact place to where to place the code
i only want a line of code that can echo sum of discounts.
i'm running out of time, and hiring an expert need lots of it.
i'll be appreciative if u can give the exact code. or an example or ...
yes, i know that, and i even know the exact place to where to place the code
i only want a line of code that can echo sum of discounts.
i'm running out of time, and hiring an expert need lots of it.
i'll be appreciative if u can give the exact code. or an example or ...
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267536
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Display total amount of discount in the cart
Hello,
Nicolas gave you the process to follow
Afterwards, I'm afraid that it's going outside the limit of our support ; like Nicolas mentioned, it is related to customization.
Regards,
Nicolas gave you the process to follow
The explanation have details and can be easily translated to PHP code if you have the basis knowledge.You'll have to loop on the array $cart->products and sum the price_value - price_value_without_discount of each product to be able to get the total amount of discount so that you can just echo it at the correct place, between the sub total and the total blocks of code.
Afterwards, I'm afraid that it's going outside the limit of our support ; like Nicolas mentioned, it is related to customization.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds