Dnj1964 5 Posted February 10 (edited) When adding product options the standard layout is to display options to the right of the product image. Wanting to display the options below the image tried modifying the code in \includes\modules\content\product_info\cm_pi_gallery.php My knowledge of php is throw html at it until it works or breaks. Then start again. This is on CE BS4 Php 7.1.25 The add-on is: JcM Product info description_tabs CE By JcMagpie Add-on works perfectly, it is a width issue with the attributes beside the image instead of below it Edited February 10 by Dnj1964 Share this post Link to post Share on other sites
♥JcMagpie 733 Posted February 10 (edited) Place the options at a higher number than the image and make them full width, that will lace it below the image. Then if image is not full width use a little css to place options below by moving it left or right. Edited February 10 by JcMagpie Share this post Link to post Share on other sites
♥JcMagpie 733 Posted February 10 The only problem you have is that if you do not set width to 12 it will pull left! So it must be 12 wide or share the width with another part? or as I said set to width required and fudge using css ( unless I'm missing something which some one may point out) Share this post Link to post Share on other sites
♥JcMagpie 733 Posted February 10 Setting it to 4 wide will give this, Share this post Link to post Share on other sites
♥JcMagpie 733 Posted February 10 Quick and dirty css fix, .col-sm-4.cm-pi-options-attributes { margin-left: 65% !important; } will give this, I think that is what you were after. Share this post Link to post Share on other sites
Dnj1964 5 Posted February 10 Got it. Gonna give it a go right now Thanks Share this post Link to post Share on other sites
Hotclutch 95 Posted February 10 4 hours ago, JcMagpie said: Quick and dirty css fix, .col-sm-4.cm-pi-options-attributes { margin-left: 65% !important; } will give this, I think that is what you were after. Try using class="ml-auto" instead of doing this. 1 raiwa reacted to this Share this post Link to post Share on other sites
♥JcMagpie 733 Posted February 10 Yes but that would require the OP editing a stock file! css can just be dumped in user.css or have I missed somthing? Share this post Link to post Share on other sites
Dnj1964 5 Posted February 10 (edited) Added another product without any options/attributes and the image totally refuses to move. Set image to 12 which should relocate it directly below the Add To Cart. And left column is also being ignored and is placed below the tabs Back to the drawing board. Edited February 10 by Dnj1964 Share this post Link to post Share on other sites
♥JcMagpie 733 Posted February 10 Check you html output it will show the problem causing this or pm link to debug. Share this post Link to post Share on other sites
Dnj1964 5 Posted February 10 One issue found Not really related .rmm.style ul ul li a { padding: 2px 50px; color:#B62285;; } To lazy to type copy and pasted a bit to much Share this post Link to post Share on other sites
Hotclutch 95 Posted February 10 41 minutes ago, JcMagpie said: Yes but that would require the OP editing a stock file! css can just be dumped in user.css or have I missed somthing? The notion of not wanting to edit "stock" files is ridiculous. The CE is not a product that allows for this. There's a difference between a core file and a template file. Users should be encouraged to change template files instead of dumping everything into a user.css, which loads on every page. Totally inefficient, besides the fact that you're now adding redundant layers of CSS, duplicating the bootstrap CSS. 2 raiwa and Dan Cole reacted to this Share this post Link to post Share on other sites
♥JcMagpie 733 Posted February 10 Well each to his own, I'm keeping clear of this. 😂 Share this post Link to post Share on other sites
Dnj1964 5 Posted February 10 JcMagpie Solved my issue, was a width issue. Amazing, after I butcher his code to suit my own purposes he fixes for me! Absolutely unbelievable. A huge thank you! All the help is greatly appreciated. Share this post Link to post Share on other sites
Dnj1964 5 Posted February 11 Ok quite possibly I am stupid, but I don't see where to Warranty Information or Manuals Share this post Link to post Share on other sites
♥JcMagpie 733 Posted February 11 (edited) warrenty text uses the keyword box in products edit page. Manuals are independent of the code, you simply folow instructions in readme file and make folder and put the pdf files with corect name into it. public_html/manuals if your product has model number "Galaxy S9" then you make the manuals named as Galaxy S9_PDF1.pdf Galaxy S9_PDF2.pdf and simply place them in the folder and they will be automaticly picked up and displayed. If a product has no manuals then it simply displays no manual available for this product. Edited February 11 by JcMagpie Share this post Link to post Share on other sites
Dnj1964 5 Posted Friday at 05:27 AM Wanting to eliminate a lot of dead real estate and move the product attributes directly under image. (Shortening Product Description is the obvious answer. Not an option) Description 8/60 & Gallery 4/60 Setting the Attributes to 4/65 would think would move Attributes unless description set at 60 pushes the 65 setting to the bottom regardless. Thanks in advance. I know someone has the answers and solutions that elude me! Share this post Link to post Share on other sites
♥JcMagpie 733 Posted Friday at 08:53 AM (edited) Yes it can but be carfull as messing with layout can mess up mobile view. So set tabs, image and atts all to same number, tabs 8 wide image 4 wide and atts 4 wide. Now the fiddle, pull atts left however you wish to do it, css or class change, then you need to add some css that will only affect large screens only. @media screen and (min-width: 800px) { /*this css will only be used when the screen size is min 800px*/ .col-sm-4.cm-pi-options-attributes { margin-top: -45% !important; } } Any thing else will mess up mobile views. The example is using @Hotclutch class change class="ml-auto" with the above css change. Edited Friday at 08:54 AM by JcMagpie Share this post Link to post Share on other sites
♥JcMagpie 733 Posted Friday at 09:17 AM Sorry but ignore the above advice it's not stable! The atts are still moving as content moves! not sure why. Share this post Link to post Share on other sites
Hotclutch 95 Posted Friday at 02:53 PM yeah, the short answer to this question is that it can't be done, without creating a mess with CSS. The better solution would be to redefine the layout for modules in the product_info.php. Share this post Link to post Share on other sites
♥JcMagpie 733 Posted Friday at 07:57 PM Try just rearanging the blocks pull the atts above the tabs and image and make it 12 wide the rest stays the same. The layout stays the same for products with no attr's and those that have them still look ok on both PC and mobile. Share this post Link to post Share on other sites