I am trying to modify products.tpl to display price/4 for a buy now pay later option, I am a noob at php and have used the following but it displays zero, any pointers what I am doing wrong?
<div>Four Fortnightly Payments of $<?php echo ($price / 4); ?></div>
Thanks
https://www.opencart.com/index.php?rout ... er=WeDoWeb
https://www.opencart.com/index.php?rout ... n_id=29816
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
and you have not posted your OC version .. so ..
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
Spinning Social : Links : Menus : Payments : Socials : Ads : Screen Backgrounds : Galleries : Headers : Banners : Promos
take a look at the catalog/controller/product/product.php file .. and then you have the accounts ..
so I was thinking about this ...
why not use the product options and divide it manually i.e. use the % ?
you might have to remove the + and - but that is MUCH easier .. just add a class .. and for those specific options you can hide the options price (because it will be a minus) .. and and the price into the option title .. something like that anyway ..
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
Spinning Social : Links : Menus : Payments : Socials : Ads : Screen Backgrounds : Galleries : Headers : Banners : Promos
<?php echo str_replace("£", "", $price) / 4 ; ?>
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Code: Select all
<?php echo str_replace("€", "", $price) / 4 ; ?>
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
Hi,
Just to be clear, all I want to do is display the the price divided by 4 on the product page (I am modifying the cheque payment module), I dont want to actually change the checkout value.
There are various 'Buy Now Pay Later' vendors I am signing up with so i will have 3 or four of these all displaying different payment options (4 payments/5 payments/10 payments, etc) and the breakdown.
The actual transaction will be completed offline by contacting the buyer manually to obtain their app id.
Thanks for your time
THIS WORKS !!!
I had to replace the pound symbol for a dollar symbol and it works perfectly
Thank you for your help and thank you to everyone for their inputs.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Customer gets purchase email as normal.
Customers installs app on their phone or creates account online which generates an ID
We follow up with customer manually to obtain their app ID
We enter order details manually into 'Buy Now Pay Later' vendors online portal.
Transaction is completed between vendor and customer via the app.
I had to do it this way as none of the 'Pay Later'vendors provide modules for Opencart 1.5.x and upgrading mine is going to be a nightmare as I have so many add-ons and tweaks.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Great stuff. I also take Cash, Bitcoin, Groats and turnips if the economy is really bad.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Users browsing this forum: No registered users and 18 guests