Jump to content

bartman

Members
  • Posts

    148
  • Joined

  • Last visited

bartman's Achievements

Newbie

Newbie (1/14)

4

Reputation

  1. We need to set an exact shipping cost of £1.95 including tax. as we are based in the uk the shipping is taxable at 20% as its a service we offer. so in prestashop it only lets me set the shipping cost - the tax rate to two decimal places to achieve as shipping rate of £1.95 it needs to be set to 1.625 as 1.625 x 1.2 = 1.95 but presta shop will only let me set the cost at 1.62 or 1.63 so 1.62 get rounded down to 1.94 and 1.63 get rounded up to 1.96. not what we want. have thought about going into the db and aletring the table. but any other ideas would be appreciated thanks Chris
  2. forgot to add all top level cats must use scenes
  3. what i am trying to do is as follows if a category has no subcats, use the scene applied to it, but if it has subcats use the subcat image applied to the category, basically i need to detect whether the category has any subcats regards chris
  4. Ok found it the hooks now have to entered into ./classes/FrontController.php
  5. Just having a play with 1.4.02 and see how it works with a new theme I have designed, but at present I need to add a couple of custom hooks, can not see how to do this, they used to sit in header.php, any pointers would be appreciated regards Chris
  6. When you mark an order as dispatched, does any one know what the database query used is ? basically does it check the ps_configuration table for the ps_number record value and insert this into the ps_orders file with the date time then update the ps_configuration file We are using a intergrated system that manages all our orders from different sites and outlets but at the moment it is breaking the manual printing of prestashop delivery notes as all it does is update the ps_order_history and chanes the order_state number
  7. Just modded a 1.25 site with the files, only made the mods mentioned above and it works fine no mod to product.php except the cnage to the call for header.tpl mod in action here http://party-nite.co.uk/balloon-weights/13-balloon-weight-black.html will have another look @ init.php and see if anything is different there
  8. no, nothing in header.php, had a quick look in init.php and can not see anything odd their, I have another prestashop 1.25 site running will apply mod and see if it works, but looking at the code now, I am suprised it worked
  9. its a module i am building for our own use, it will be from the front office, basically i want a link to edit this item to appear on the product page, I was going to use the same functions as the maintenace page in prestashop so in the module you would input your ip and when the product page loads it detects ip and if the ip's match the link to edit this item will on the product page
  10. on the product page in the front office, where does the breadcrumb show they are located. Check this and see if the are ion the correct categorys
  11. We used to be able to display the price of the product in the meta title on the product page by using the following modified header.php in the root directory as follows $header_tpl = 'header.tpl'; if(file_exists(_PS_THEME_DIR_ . 'header_' . $page_name . '.tpl')) { $header_tpl = 'header_' . $page_name . '.tpl'; } $smarty->display(_PS_THEME_DIR_. $header_tpl); so instead of header.tpl being called on the product page header_product.tpl is called in header_product.tpl i have the following <title> {$meta_title|escape:'htmlall':'UTF-8'} - {convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)} </title> this works in 1.25 but breaks in 1.31 with the error PHP Fatal error: Call to a member function getPrice() on a non-object in /home/firestri/public_html/tools/smarty/compile/%.^2E6^2E61960E%%header_product.tpl.php on line 11 any pointers would be appreciated
  12. Just playing around with a new module, and need to find the path to the admin directory , is this possible as the admin directory can be different on every install IMHO, I do not think this is possible. and will have to be added in the configuration of the module
  13. We have a google checkout account, but wish to use it with multiple prestashops, In the Google checkout intergration on google you have to set a return url for a successfull transaction so this obviously stops the use of multiple prestashops, but looking at the google api, you can sent google the return checkout url when connecting as follows <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://www.example.com"/> Looking at the google checkout module I noticed the following $googleCart->SetContinueShoppingUrl('http://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'order-confirmation.php'); Is it possible just to add $googleCart->Setcheckout-flow-support.merchant-checkout-flow-support.continue-shopping-url('https://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'modules/gcheckout/validation.php'); To allow multiple site then remove the return url from our google checkout account settings Just tried in sandbox mode and it fails, so more mods needed
  14. none of them, it is the admin folder. if it is not onyour server check the files you downloaded from prestashop and upload the admin folder regards Chris
×
×
  • Create New...