Project Home
Manuals
Contact Us
Download
Demo
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
AbanteCart v
1.3.4
is released.
Home
Help
Search
Calendar
Login
Register
AbanteCart Community
»
Shopping Cart Operations
»
Support
»
General Support
»
Getting value of 'call_to_order' on product page
« previous
next »
Print
Pages: [
1
]
Author
Topic: Getting value of 'call_to_order' on product page (Read 2052 times)
Sam_78
Sr. Member
Posts: 270
Karma: +42/-1
Getting value of 'call_to_order' on product page
«
on:
March 12, 2022, 12:52:11 PM »
Hello,
I am using AbanteCart Version 1.3.0 and in \storefront\view\default\template\pages\product\product.tpl I am not getting value for $product_info['call_to_order'] infact if I do var_dump($product_info) all I get is array(1) { ["blurb"]=> string(0) "" } Can someone guide me how can I pass all the values into product_info because I also see in product.tpl there are other values used which are not working $product_info['free_shipping'] && $product_info['shipping_price']
if I do var_dump($product_info); after this
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/pages/product/product.php#L924
I am getting all the values correctly but not in \view\default\template\pages\product\product.tpl.
Thanks
«
Last Edit: March 12, 2022, 01:22:12 PM by Sam_78
»
Logged
abolabo
core-developer
Administrator
Hero Member
Posts: 2048
Karma: +319/-13
web for all, all for web!
Re: Getting value of 'call_to_order' on product page
«
Reply #1 on:
March 14, 2022, 01:53:45 AM »
if you have right array in controller, but not in tpl that means you have an some extension which override view variable.
Easiest way to check - just comment row with hk_UpdateData() at the end of controller method and see what you got in the tpl
Logged
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens
Print
Pages: [
1
]
« previous
next »
AbanteCart Community
»
Shopping Cart Operations
»
Support
»
General Support
»
Getting value of 'call_to_order' on product page
Powered by SMFPacks Social Login Mod