Je viens de faire un petit module pour ajouter l’option Paquet Cadeau lors du passage de commande.
Ce module permet l’ajout du paquet cadeau pour toute la commande et non pas par articles commandés.
Si il y a des personnes intéressés par ce module, je prendrai le temps de faire un petit tuto.
Sorry but i don’t no french , sorry for that
I like your module but i have some problems with it and i can’t find what i am doing wrong, i have followt you manual bud when i put in the edited inline.phtml with the peace of code
The version of Magento I use for gift wrap module is 1.3.2.4 and in magento 1.4 I think they don’t use filtering with category_ids anymore. (you can see category_ids in Block/PapierCadeau.php)
to solve the problem replace the PapierCadeau.php code with the following
/!\ DON’T FORGET TO REPLACE THE ID “10” BY YOURS
class Dee_GiftWrap_Block_PapierCadeau extends Mage_Catalog_Block_Product_List { protected function getProductCollection() {
$collection = Mage::getResourceModel('catalog/product_collection'); $collection = $this->_addProductAttributesAndPrices($collection) ->addStoreFilter() ->addCategoryFilter(Mage::getModel('catalog/category')->load(10));/*replace 10 with your gift wrap category id*/ $collection->getSelect()->order('rand()');
Thank you for your reply , i did change the code in the new code but still no luck
It still give’s me a nonfunctional checkout page like you can see in the screen.
I was in the understanding that the tutorial was for 1.4 but now i see that it was only a message for a new version of 1.4 in the first picture of your tutorial
Hope you can help me any further because its a great module that i real need for my gift shop
Thank again for the time and effort you put in to it
Well call me crazy but still its not working, I have uploaded the files you gave in the above post and still my card is not functional afther i upload the inline.phtml
Now i have looks it over and it seems my template was build for 1.1 and is running on 1.4 without any problems, my inline.phtml is the same code as you describe in you pdf tutorial I think that is what causes my problem
You should think that when i get the code ot of your inline.phtml and than put it into my inline.phtml just afther (</fieldset>) it must work but it’s not
Hope you understand what i mean and see what is causing the problem because i am lost now
Can you tell me which version of magento do you use??
And how exactly did you include the gift wrap module in your magento?? need to give the exact path, name of your interface and theme you use.
The /public_html/app/design/frontend/blank/theme032 is the one i uses in my admin BUT there is no {giftmessage}
folder in it so i go back and go to
/public_html/app/design/frontend/blank/default/template and there is a folder {giftmessage} so i created
And ad the code from your inline.phtml of the zip file in the inline.phtml of my inline.phtml, as soon as i do that my
checkout page is not working anymore.
I also did try this
I deleted the giftmessage map in /public_html/app/design/frontend/blank/default/template/giftmessage
and put it in /public_html/app/design/frontend/blank/theme032/template/giftmessage
Created the
/public_html/app/design/frontend/blank/theme032/template/giftwrap/inlinewrap.phtml but still i get the same result
So i hope you see it because i am lost now
thanks again for your time dee
really appreciated it
@Mike : sorry, couldn’t reply earlier, been really busy those days.
if you use the template theme032 then you should put giftwrap/inlinewrap.phtml in /public_html/app/design/frontend/blank/theme032/template/ folder
same thing for giftmessage.
the gift wrap module works on magento 1.3.2.4 and 1.4.0.1 (I’ve tested it)