datmos Posted June 11, 2010 Share Posted June 11, 2010 Hello,there is any posibility to add a new box under "add to cart" button ? like the image below ?Thanks! Link to comment Share on other sites More sharing options...
Sultan Posted June 12, 2010 Share Posted June 12, 2010 Hello,there is any posibility to add a new box under "add to cart" button ? like the image below ?Thanks! Hi,yes sure, just use the AddStuff - Homepage Static Block module, a compliments module of eCartService.net.If you have it in the modules section of you BO, then make sure to install it and configure it.Then go to: modules >> positions >> Transplant a module and add it to the right column. Use the arrows to set its location after the cart.HTH, good luck, Link to comment Share on other sites More sharing options...
urfawebnet Posted June 12, 2010 Share Posted June 12, 2010 yes addstuff modeule is very usefull.thank you sultan Link to comment Share on other sites More sharing options...
datmos Posted June 12, 2010 Author Share Posted June 12, 2010 ops, no sorry, i know how to add a new block and hook it in any column.but i don't need another block under cart, i need a "box" under the "Add to Cart" Button in the product pages.you know ?sorry for my english i can't express correctly what i wan xDsee image Link to comment Share on other sites More sharing options...
Sultan Posted June 12, 2010 Share Posted June 12, 2010 ops, no sorry, i know how to add a new block and hook it in any column.but i don't need another block under cart, i need a "box" under the "Add to Cart" Button in the product pages.you know ?sorry for my english i can't express correctly what i wan xDsee image OK, what are you going to add in this box? Adv, img, HTML code... ? Link to comment Share on other sites More sharing options...
datmos Posted June 12, 2010 Author Share Posted June 12, 2010 htm if posible Link to comment Share on other sites More sharing options...
Sultan Posted June 12, 2010 Share Posted June 12, 2010 htm if posible Great, addstuff module will let you do that... & more :-) Link to comment Share on other sites More sharing options...
datmos Posted June 12, 2010 Author Share Posted June 12, 2010 Well, from what I see, addstuff adds a module and put it wherever you want, ok.But what I have to do for the module appears in the position I mentioned earlier?I can not understand where this module benefit me, since I already know how to create modules.Tanks Link to comment Share on other sites More sharing options...
mytheory. Posted June 12, 2010 Share Posted June 12, 2010 What are you trying to put there? I know you say you want a box... but are you talking about a textbox/textarea? Or are you planning on putting something else there? Link to comment Share on other sites More sharing options...
datmos Posted June 12, 2010 Author Share Posted June 12, 2010 i'm trying to put a button that redirect to contact form to check the stock.or a simple textonly i want to know is and idea to how to put there a box, then they'll take care of it is correctthankss Link to comment Share on other sites More sharing options...
mytheory. Posted June 12, 2010 Share Posted June 12, 2010 I'm not fully understanding you so I apologize if this is something totally different from what you are looking for. But off the top of my head, can't you just modify the code in themes/prestashop/product.tpl? I believe that "hook" or area where that box is within the "buy_block" of the product.tpl file. OR I was thinking maybe you could modify the code for the "Loyalty Points" module to fit something else there... when you install this module it hooks some text with a link in that same area.HTH! Link to comment Share on other sites More sharing options...
Sultan Posted June 12, 2010 Share Posted June 12, 2010 Well, from what I see, addstuff adds a module and put it wherever you want, ok.But what I have to do for the module appears in the position I mentioned earlier?I can not understand where this module benefit me, since I already know how to create modules.Tanks You're welcome anytime,If you can create a module, then that is great... just create your module and upload it to your modules folder and install,Once it's installed, you can position it anywhere...FYI, I have 3 addstuff modules in my website and I had no problem in positioning all of them, actually one of them is just on the same place where you want to add your box.the attached image shows two of the addstuff modules I have, the 3rd one is on the home page. Link to comment Share on other sites More sharing options...
datmos Posted June 12, 2010 Author Share Posted June 12, 2010 I'm not fully understanding you so I apologize if this is something totally different from what you are looking for. But off the top of my head, can't you just modify the code in themes/prestashop/product.tpl? I believe that "hook" or area where that box is within the "buy_block" of the product.tpl file. OR I was thinking maybe you could modify the code for the "Loyalty Points" module to fit something else there... when you install this module it hooks some text with a link in that same area.HTH! yes man is something like that, i tried that with stars module, but have been unable to modify.i tried to modify de product.tpl, but is a little hard for me to found the code for copySultan you are not understanding me xD sorry manthe image below i think is better Thanks !!( the image corresponds to any product page ) Link to comment Share on other sites More sharing options...
mytheory. Posted June 12, 2010 Share Posted June 12, 2010 datmos,So I think I'm starting to understand a little bit more of what you are trying to do...Try this out... in themes/prestashop/product.tpl, around line 310, add the following: {if $product->description_short} {$product->description_short} {/if} I'm pretty sure my product.tpl file is heavily modified so I'm not sure if the above line will match yours, so the above code should go after these lines (after </form>): quantity == 0} style="display:none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> {if $HOOK_PRODUCT_ACTIONS} {$HOOK_PRODUCT_ACTIONS} {/if} </form> This copies "short description" block from above - in the same column. Now you should notice that, {$product->description_short}, of the new code is outputting the short description for that product, so you should modify this with whatever you're trying to do.I also noticed that this "new" box is attached to the above box (with the product info and add to cart button), did you want to have a space between these two "boxes"? Unfortunately, I'm about to get off work so this was a quick fix, and if you need that space I can try and mess around with the code a bit more tomorrow.HTH! Link to comment Share on other sites More sharing options...
datmos Posted June 12, 2010 Author Share Posted June 12, 2010 ow yes man, thats it xDis what I was looking for. The space really is OK, because I want to be part of the above box.now only a matter of editing it to add text or desired button.for now I leave here, I'm going to sleep, tomorrow will try to edit it and I'll tell you something.thank you very much dude! Link to comment Share on other sites More sharing options...
Sultan Posted June 13, 2010 Share Posted June 13, 2010 yes man is something like that, i tried that with stars module, but have been unable to modify.i tried to modify de product.tpl, but is a little hard for me to found the code for copySultan you are not understanding me xD sorry manthe image below i think is better Thanks !!( the image corresponds to any product page ) I C now what you are trying to do... :red: it's very easy,,follow these steps and you should be good to go [1] in your theme folder create sub-folder (e.g. datmos_includes)[2] create your html page (e.g. datmos1.htm) and upload it to [datmos_includes] folder[3] open product.tpl file[4] search for this code: {if $HOOK_PRODUCT_ACTIONS} {$HOOK_PRODUCT_ACTIONS} {/if} </form> [5] after it add the following code: {include file=$tpl_dir./datmos_includes/datmos1.htm} and that's it :-)HTH,Good luck and sorry for miss-understanding your question :$P.S. I've add more details in to the next post... Please look at them... Link to comment Share on other sites More sharing options...
Sultan Posted June 13, 2010 Share Posted June 13, 2010 Hi again,just forgot to tell you that you need to edit the global.css file to control your new box:I've attached the files I used in my solution so you can use them if you wish!copy & paste the code in the global.txt file @ the end of your global.css file.From there, you should be able to control the look & feel of your box. (height, width, font, bg, etc etc etc)the image is a snapshot from my website good luck, global.txt datmos_includes.zip Link to comment Share on other sites More sharing options...
datmos Posted June 13, 2010 Author Share Posted June 13, 2010 yeah man !!that's it. it works perfect, with the CSS code the box get the same style like the other boxes.thats really good Sultan MANY MANY MANY Thanks !!! here is an image:thanks other time Link to comment Share on other sites More sharing options...
Sultan Posted June 13, 2010 Share Posted June 13, 2010 yeah man !!that's it. it works perfect, with the CSS code the box get the same style like the other boxes.thats really good Sultan MANY MANY MANY Thanks !!! here is an image:thanks other time Very delighted to hear that :-)good luck with your store man Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted May 23, 2015 Share Posted May 23, 2015 Can someone explain to me: $HOOK_PRODUCT_ACTIONS & $HOOK_PRODUCT_OOS I could not find them in module positions. Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted May 23, 2015 Share Posted May 23, 2015 I'd also like to unhook social sharing module from displayRightColumnProduct and execute just before the end of the left column and below the images. The whole theme needs balance. Link to comment Share on other sites More sharing options...
zod Posted January 29, 2016 Share Posted January 29, 2016 Can someone explain to me: $HOOK_PRODUCT_ACTIONS & $HOOK_PRODUCT_OOS I could not find them in module positions. $HOOK_PRODUCT_ACTIONS is displayProductButtons in the module positions. I don't know the other hook. Link to comment Share on other sites More sharing options...
Recommended Posts