Jump to content

Product personalisation save button and headings


Recommended Posts

Hi there,

 

I have added some personalisation fields to certain products in my store (my store is in French). 

The heading above the personalisation field is currently 'Textes' but I only have ONE text field, so it should be just 'Texte'. Is it possible to change this?

 

Also, the personalisation fields are below the add-to-cart button. Which doesn't really make sense when the text needs to be added BEFORE the item is added to the cart. It would be great if I could swap their positions. Is this possible at all?

 

I read somewhere that prestashop was getting rid of the personalisation options in future upadates. Does anybody know if this is true?

 

Any and all feedback very greatfully received :)

 

Claire

post-737342-0-59469200-1390834256_thumb.png

Link to comment
Share on other sites

in this case it will be necessary to hide add to cart button there and move it to the customization tab, you can do it in product.tpl file (located in your theme directory)

 

move this code:

	<p id="add_to_cart" {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block">
				<span></span>
				<input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
			</p>

don't forget about </form> closing div.

Link to comment
Share on other sites

Thanks Vekia,

I feel a bit dumb here. The code you supplied there, should be added / should replace the add to cart code that is already there in the product.tpl

 

I should change

<p id="add_to_cart" class="buttons_bottom_block">
                         
                            <a class="exclusive button btn_add_cart" href="javascript:document.getElementById('add2cartbtn').click();"> <span>{l s='Add to cart'}  </span></a>
<input id="add2cartbtn" type="submit" name="Submit" value="{l s='Add to cart'}" />
                            <!--show when "This product is no longer in stock with those attributes but is available with others"-->
                            <span class="exclusive hidden">
                                <span></span>
                                {l s='Add to cart'}
                            </span>
                        </p>
                    {/if}
 
to this
 
<p id="add_to_cart" {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block">
                
<span></span>
                <input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
            </p>
 
??
Link to comment
Share on other sites

Yes I want to move the add to cart button below the customization fields.

But only 50% of the products in the store use customization fields.

 

It seems odd to place the customisation feilds below the add to cart button by default!

DO you think there is a way of doing this without messing everything up?

 

:unsure:

Link to comment
Share on other sites

Ok, So I'm giving up on moving the cart button because it causes too much hassle with the other products.

Any ideas about how to change this:

The heading above the personalisation field is currently 'Textes' but I only have ONE text field, so it should be just 'Texte'. Is it possible to change this? (note it's in French)

 

thanks in advance!

Link to comment
Share on other sites

So, just to sign off on this...

 

I managed to change 'Textes' to 'Texte' the heading via the translations files.

 

I decided to leave the 'Add to cart' button where it is in case it caused problems with my products that do not use the customisation fields.

 

But I still haven't resolved the last question. Is PrestaShop removing the personalisation fields in the next update?

Any idea where / how i can find this out?

 

Thanks in advance

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...