Jump to content

[Solved] Version 1.4.2.5 Default theme error with Smarty 3 - Smarty 2 vs. Smarty 3 compatibility


Recommended Posts

I'm starting to hate this message board. Messages go off into cyber space every other time I hit submit post. Argggg. Anyways...

I am using the Default theme for Prestashop. With Smarty 3 enabled, I don't have state selections at checkout. (No states. No options for states. No state dropdowns. States/Country/Zones settings are correct).

Anyhow, after about 8 hours of troubleshooting, I found out that if I set the setting to use Smarty 2 Vs. Smarty 3 that the state options would work correctly.

So to try to fix it, I reuploaded the default prestashop theme (I had deleted the birthday option). Didn't work. I set permissions from 755 to 775 and then to 777 and back to 755 - didn't work.

I reuploaded my smarty files. Same thing with permissions. Same results. No States at checkout.

So my questions:

Is smarty 3 a server setting? My host is running php 5.2.16 which Smarty says is fine (Smarty 3 works with php 5.2 and up).

If it's not a server setting, is the default theme broke? I read a post somewhere on the forum about Smarty 3 needing spaces around the curlies deleted {LIKE THIS} Vs. { NOT THIS }. But I have no idea where I would delete spaces or even look for them.

Any advice? Can anyone lend some guidance as to how Smarty works? That might help me understand where to start looking for the problem.

Thanks in advance.

Link to comment
Share on other sites

I've fixed it.

After re-uploading the templates, I just noticed that the birthday wasn't present. So I realized I forgot to delete the smarty Cache as well from the cache and compile folders.

Once I deleted those files, I re-enabled Smarty 3 and presta! It works. I've redeleted the birthday and this time I moved the lines up so there are no blank lines. Not sure if this was the problem, But I have no BIRTHDAY AND! I have states!

Wheph!

But... I'm still curious about smarty if anyone wants to comment...

Link to comment
Share on other sites

×
×
  • Create New...