justinl
Members-
Posts
106 -
Joined
-
Last visited
justinl's Achievements
Newbie (1/14)
10
Reputation
-
I don't mean to necro this thread, but were you able to fix this issue? I'm having a very similar problem. I'm using the First Data Global Gateway e4 - Hosted Payment Page module and when I click to configure the module and add data to it, if I click the "save settings" button inside the module configuration screen, it shows me the Fatal error (Configuration -> name Length 32) error.
-
I'd like to add some parameters to the order_canceled, outofstock, payment, payment_error, refund, and shipped email templates. However when I search through the Prestashop code, I cannot find where these emails get called. For exampled, when I search my entire Prestashop folder for the word 'order_canceled' it comes up with no results. And I also looked at every instance of Mail::Send and I don't see those email templates every being called, yet I know they are getting called from somewhere because these emails are getting sent out. Thanks, Justin
-
Hi Lukas, I think to sort alphabetically you would need to make the following modifications (untested): @Codegrunt: Thanks! Extremely helpful code snippet <?php class Carrier extends CarrierCore { public static function getCarriersForOrder($id_zone, $groups = NULL) { $carriers=array(); $result=parent::getCarriersForOrder($id_zone, $groups); if($result){ if(count($result)>0){ $sort=array(); foreach($result AS $k=>$v){ $sort['_'.$k]=$v['name']; //change from 'price' to 'name' } asort($sort,SORT_STRING); //change from SORT_NUMERIC to SORT_STRING foreach(array_keys($sort) AS $k){ $carriers[]=$result[(substr($k,1))]; } } } return $carriers; } }
-
carrier listing problem of USPS module
justinl replied to drroot's topic in Configuring and using PrestaShop
I believe your presumption is correct and that one is for Regular and the other is for Commercial. -
php: date() an incorrect value in module. Why?
justinl replied to Ronaldo Perez's topic in Core developers
Glad you managed to resolve your problem -
php: date() an incorrect value in module. Why?
justinl replied to Ronaldo Perez's topic in Core developers
My thought is because your prestashop config file or somewhere in the back office you have set the timezone for your shop. When you call date() from test.php, you are not inheriting any controller or config information from the back office (assuming that test is not a controller with a class extending any of prestashops classes/controllers). That's my guess as to why it's showing different values. -
I'd make a copy of an existing module that hooks into a similar area that you want, and then I'd edit the TPL file to display whatever new navigation you want to use. The fact that you have 2 languages doesn't really change anything because Prestashop makes it really easy to set translatable strings in smarty (e.g. {l s ='this string can easily be translated in the back office'}. I'm unfamiliar with what module inserts the new navigation for 1.4.6.2 (I haven't used it myself) but you could also hijack that modules tpl file and override it in your themes/modules/modulefolder/moduletemplatefile.tpl. Then just add in your second nav into that same module.
- 3 replies
-
- navigation
- bar
-
(and 1 more)
Tagged with:
-
How to use require or include php functions
justinl replied to franco.pentangeli's topic in Core developers
It would appear that you're not giving the require function the correct path. I believe you need to use a relative path to you file based on the actual file system, not a web address. It cannot be "http://www.example.com/myphpfile.php". It would have to be something like "/myphpfile.php" or "classes/myphpfile.php". -
Thanks for your help guys. I did try both tools.php and Tools.php but neither worked. It's a mystery! If I find out what it was I'll be sure to post back here. Cheers, Justin
-
I've recently simplified my registration page and it's quite a lot of work. If you don't have any coding experience it's going to be very difficult unfortunately. Not meaning to discourage you but just trying to let you know it's not as easy as someone sending you a file. Most likely you'll have to figure it out on your own because there are address related dependencies in other places in the shop including the my-account section, the shopping cart, paypal, the one page checkout module, and various javascript files.
-
put this block around the DIV that contains your pictures. This would essential not render any HTML where the picture should go, if the product has no picture. product.tpl {if isset($images) && count($images) > 0} //picture displaying code goes here (default prestashop code. no need to change anything) {/if}
-
Prestashop shows weird lay-out when viewing site
justinl replied to tarellc's topic in Configuring and using PrestaShop
Did you set in your Back Office > Preferences > SEO & URL's to use "shop/" as your PS Directory? That might help cause it seems like your page is having trouble finding your .css files -
[solved] how to edit datasheet tab
justinl replied to verhoej's topic in Configuring and using PrestaShop
To enable it, you need to add features to your product. This can be done from the Back Office. Click on the product you want to edit, and then along the product tabs (once you are editing the product) click on the Features tab and add a new feature. Those features are what show in the data sheet. -
The easiest way might be through executing some SQL in your database. This should do the trick: UPDATE ps_country SET contains_states = '1' WHERE active = '1' Other than that, you'll have to go into each country in the Back Office individually and turn "contains states" to on. However, if you don't have any state information for a country and a customer tries to checkout, you might get an error because a state is required for that country but there is nothing to select. Cheers, Justin