| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Data passing between template and PHP file | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() I've tried the suggestions and it still responds the same. These are the two versions of the line I tried in the PHP file:
$smarty->assign ("main", "newname"); and $smarty->assign ("main", $newname); but neither seemed to do the trick. I also added the elseif statement to the file mentioned. Could there be another file that I need to use the elseif statement in or is this the only one? Thanks again. Adam
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
#12
|
|||||||||
|
|||||||||
![]() What you added in the common_templetes.tpl .Can you post it here.So i can able to identify where the problem is.
Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#13
|
|||||||
|
|||||||
![]() Here's what I added to common_templates.tpl:
Code:
And the line I currently have in my PHP file is $smarty->assign("main", $iesearch); My tpl file is in the skin1 folder while the php file is in the root xcart folder. Is this the issue? I really do appreciate the help Adam
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
#14
|
|||||||||
|
|||||||||
![]() Add this instead of yours in the php file.
$smarty->assign("main", "iesearch"); This line is used to say, what tpl need to be used for this particular php file. check it now. Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#15
|
|||||||
|
|||||||
![]() This is the php file as it is now. The page still goes white and stays at ...xcart/mmy.php Is there some sort of conflict between the two $smarty->assign statements at the end? I am trying to pass the array from $rowMake into smarty and the back to mmy.tpl Thanks again.
Adam Code:
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
#16
|
|||||||||
|
|||||||||
![]() Hi ,
I forgot to tell you one thing . Add this two lines at the end of the mmy.php page (before the closing php tags.) $smarty->assign("location", $location); func_display("customer/home.tpl",$smarty); Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#17
|
|||||||
|
|||||||
![]() Ok, now I get back to the initial page, sort of. I end up at mmy.php when I'd like to be back at home.php but I'm not too concerned with this at this time. I'm not getting the data from query back to my second dropdown box. Not sure what I've done. The query does work, I can echo it back out in the php file, just can't get the transfer complete.
tpl: Code:
php: Code:
Thanks again for the help. Adam
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
|
|||
X-Cart forums © 2001-2020
|