-
- deedev

-
Total Posts: 26
Joined: 2008-11-10
Montpellier
|
Hello TLM,
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.
Vous pouvez voir le résultat sur l’image en PJ.
Ciao ciao.
Dee
Image Attachments
Click thumbnail to see full-size image
|
| |
-
- Posted: March 23 2010
-
| top
-
|
 |
 |
 |
|
|
|
|
-
- deedev

-
Total Posts: 26
Joined: 2008-11-10
Montpellier
|
Thanks cedddd!!!
|
| |
-
- Posted: March 24 2010
-
| top
| # 2
-
|
 |
 |
 |
|
|
-
- thibautv

-
Total Posts: 4
Joined: 2009-03-09
|
Hello deedev,
Très intéressant ce module.
Si tu peux en effet nous écrire un petit tuto, ce serait top !
A+
|
| |
-
- Posted: April 27 2010
-
| top
| # 3
-
|
 |
 |
 |
|
|
-
- deedev

-
Total Posts: 26
Joined: 2008-11-10
Montpellier
|
Hello Thibaut,
voici le tuto!
amuse-toi bien !
n’hésites pas si t’as des questions..
Dee
File Attachments
|
| |
-
- Posted: April 27 2010
-
| top
| # 4
-
|
 |
 |
 |
|
|
-
- thibautv

-
Total Posts: 4
Joined: 2009-03-09
|
Merci bcp !
|
| |
-
- Posted: April 27 2010
-
| top
| # 5
-
|
 |
 |
 |
|
|
-
- downloads4all

-
Total Posts: 6
Joined: 2010-04-27
|
Hi Mr dee
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
<?php echo $this->getLayout()->createBlock('dee_giftwrap/PapierCadeau')- >setTemplate('giftwrap/inlinewrap.phtml')->toHtml(); ?>
my whole cart is not working anymore
I use the latest magento 1.4.0.1 just like you tutorial
Could it be something with the copy past maybe?
Hope you can and will help me with that
Thank in advance
greets mike
|
| |
-
- Posted: May 7 2010
-
| top
| # 6
-
|
 |
 |
 |
|
|
-
- downloads4all

-
Total Posts: 6
Joined: 2010-04-27
|
No one els have got any trouble getting this to work? I use a custom template maybe that causes my problem?
Could it be the capitals of the map names?
Create those directories in
app/code/local/
|_ Dee
|_GiftWrap
|_Block
|_Model
|_etc
please help
Thank you
|
| |
-
- Posted: May 8 2010
-
| top
| # 7
-
|
 |
 |
 |
|
|
-
- deedev

-
Total Posts: 26
Joined: 2008-11-10
Montpellier
|
Hello Mike,
Thanks for using Gift Wrap module!
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()');
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection); Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
$this->_productCollection=$collection;
return $this->_productCollection; } }
Hope, it’ll help!
Let me know if it works…
Dee
|
| |
-
- Posted: May 8 2010
-
| top
| # 8
-
|
 |
 |
 |
|
|
-
- downloads4all

-
Total Posts: 6
Joined: 2010-04-27
|
Hi dee,
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 for your time
cheers mike
Image Attachments
Click thumbnail to see full-size image
|
| |
-
- Posted: May 8 2010
-
| top
| # 9
-
|
 |
 |
 |
|
|
-
- deedev

-
Total Posts: 26
Joined: 2008-11-10
Montpellier
|
Hi again Mike,
I found the problem!
When you copy the code from the pdf it adds new lines where it shouldn’t. Just like the code you posted earlier
<?php echo $this->getLayout()->createBlock('dee_giftwrap/PapierCadeau')- >setTemplate('giftwrap/inlinewrap.phtml')->toHtml(); ?>
in fact, there is no new line before >setTemplate.
And this happened in some files, my fault
So, to make things easier I’ll attach the code in a zip file so you’ll just have to unzip in the approriate folder.
/!\ Don’t forget to change id of the category in Observer.php and PapierCadeau.php
TC
Dee
File Attachments
|
| |
|
 |
 |
 |
|
|
-
- downloads4all

-
Total Posts: 6
Joined: 2010-04-27
|
Hi dee,
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
Thanks again mike
|
| |
|
 |
 |
 |
|
|
-
- deedev

-
Total Posts: 26
Joined: 2008-11-10
Montpellier
|
Hello Mike,
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.
Cheers,
Dee
|
| |
|
 |
 |
 |
|
|
-
- downloads4all

-
Total Posts: 6
Joined: 2010-04-27
|
Hello dee,
Here is what i did, I am running on 1.4.0.1
i created in
/public_html/app/code/local/Dee
/public_html/app/code/local/Dee/GiftWrap
/public_html/app/code/local/Dee/GiftWrap/Block/PapierCadeau.php
/public_html/app/code/local/Dee/GiftWrap/etc/config.xml
/public_html/app/code/local/Dee/GiftWrap/Model/Observer.php
This is done whit you zip file
Also done with your zip file is
/public_html/app/etc/modules/Dee_GiftWrap.xml
No comes the tricky part
My theme is located in
/public_html/app/design/frontend/blank
In there i have 2 maps cald
/public_html/app/design/frontend/blank/default
/public_html/app/design/frontend/blank/theme032
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
/public_html/app/design/frontend/blank/default/template/giftwrap/inlinewrap.phtml
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
cheers mike
|
| |
|
 |
 |
 |
|
|
-
- loopion

-
Total Posts: 24
Joined: 2010-02-11
New York
|
Merci beaucoup, ton tuto est tres clair et tout a marche comme prevu!
Je dois simplement customizer le frontoffice.
-------
Thank you very much for your work, it was really clear and helpful. Everything works perfectly!
After all we just need to customize our frontend
|
| |
|
 |
 |
 |
|
|
-
- deedev

-
Total Posts: 26
Joined: 2008-11-10
Montpellier
|
@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)
Take care mike
pv me if you still have troubles
@loopion : de rien
|
| |
|
 |
 |
 |
|
|