Search the Community
Showing results for tags 'offset'.
-
Hi i use 1.7.3 prestashop version and my php version is 7.1 by changing one word in translations in admin panel i lost it and got http error 500, i tried to active debugging and it shows this error : ContextErrorException in ClassCollectionLoader.php line 76: Notice: unserialize(): Error at offset 142 of 22712 bytes IS ANY ONE KNOW HOW TO SOLVE IT?
-
- error 500 server
- error 500
-
(and 4 more)
Tagged with:
-
smarty [SOLVED] Cutting through the loop
nsbey posted a topic in Addons, modules and themes developers
Hello, I am developing a website for a client, and I have been asked to display the features using two columns instead of the usual one. There will be three columns on the product page One column contains the picture of the product and the two others are the features. The latter are features, but the first columns contains general characteristics (reference name, colour, adhesive type,...) of the item while the other columns will be about dimensions (margin, padding, pitch, height,...). I see in "product-details.tpl" that the items are looped from "$product=grouped_features" array, and as my technical references are containing 16 datafields, I'd like to interrupt the loop at the 8th feature on the first column, and resume the loop the next column. I know that in some templating languages (Jinja2, Twig, Handlebars), it is possible to do something like that, but I cannot manage to find this with Smarty. Would I have to change something in the deep code? More than words, an example with pseudocode; // Column N°1 FOREACH $product.grouped_features START=1(i) STOP=8(i) $feature.name(i) $feature.value(i) ENDFOREACH // Column N°2 FOREACH $product.grouped_features START=9(i) STOP=16(i) $feature.name(i) $feature.value(i) ENDFOREACH (i) being the iteration. I tried this solution, but it only shows me one iteration. To test, I only have 6 features, I set $smarty.foreach.featureCount.iteration == 4 but it only shows me the 4th value :I have been looking about this for some time now and I run out of ideas. Is that even possible? I am running PrestaShop 1.7.3. {foreach from=$product.grouped_features item=feature name=featureCount} {if $smarty.foreach.featureCount.iteration == 4} <dt class="name">{$feature.name}</dt> <dd class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd> {break} {/if} {/foreach} Thank you. -
Greetings, so I was trying to solve the so common issue with firebox where the Facebook block doesn't display at all, and by doing so I did a reset on the module itself and next thing I knew, my default template got screwed up. The odd thing is that I can't seem to hook it back into the same line (3 column) on the footer (see image). P.S. Has anyone also solved that facebook-firefox issue? cheers, AJ
-
Hi fellows, so I have my live site at http://tivicr.com and currently has the features I am looking for, yet they were done through a nice module yet it sort of calls the css files from a server in Europe and somehow I am thinking it may be slowing my site. I am looking to offset the site from the top of the browser and add a nice shadow all aroud the website main index page. I can add a shadow on the side if I didn't mind not having the site offset by simply adding a repetitive background with the shadow yet by offsetting I am screw, any suggestions? Thanks and God Bless, AJ
-
Hello everyone. I've recently upgraded to Prestashop 1.5.5 and seem to have a problem with the product-image on the product-page. As you may see here: http://216.69.159.202/gizmosuit/shop/index.php?id_product=1&controller=product The image is floating on the foreground in the center of the page instead of its proper place (further up and to the left of the screen). Does anyone have any ideas on the cause and/or solution? Much appreciated!