Jump to content

Need help to edit text in cart


Recommended Posts

Hello fellow prestashoppers :)

 

I want to know how i can edit the text in the cart, my cart currently look like this:

http://gyazo.com/7b4de9fd69bd74dc0db98d1a9d9a63a1

And i want to add two lines, where in the first line there would be a text like "you have X goods", and in the next line  " for XX $". So it would look like this:

http://gyazo.com/87ef2f4f5501d341bb72ddfe457ca531

 

Any ideas on how to do this ?

 

Soz for my horrible english :)

Link to comment
Share on other sites

i know that this will sound weird but... it's not a cart module ;)

it's a blockuserinfo module, you can edit this module in: /modules/blockuserinfo/blockuserinfo.tpl

you can add there code to display button to continue order and also modify information about cart products

Link to comment
Share on other sites

i know that this will sound weird but... it's not a cart module ;)

it's a blockuserinfo module, you can edit this module in: /modules/blockuserinfo/blockuserinfo.tpl

you can add there code to display button to continue order and also modify information about cart products

Could you help me in some way, so i can add the text ? :)

Link to comment
Share on other sites

show me contents of your blockuserinfo.tpl file

(sometimes module files are located also in your theme directory - if this file exist there - please copy this file)

 

you can attach file to the pastebin.org website, it will be much easier to read code then.

thanks in advance

Link to comment
Share on other sites

show me contents of your blockuserinfo.tpl file

(sometimes module files are located also in your theme directory - if this file exist there - please copy this file)

 

you can attach file to the pastebin.org website, it will be much easier to read code then.

thanks in advance

As you can see I use the default theme :)

Here is the link: http://pastebin.com/WLhZRv2k

Thanks a lot !

Link to comment
Share on other sites

show me contents of your blockuserinfo.tpl file

(sometimes module files are located also in your theme directory - if this file exist there - please copy this file)

 

you can attach file to the pastebin.org website, it will be much easier to read code then.

thanks in advance

Did you find out how to do it ? :)

Link to comment
Share on other sites

ad the end of <li> object add: 

<a href="{$link->getPageLink($order_process, true)|escape:'html'}" class="buttoncart" style="">{l s='go somewhere'}</a>

inblockuserinfo.css add this:

.buttoncart{
    position: relative!important;
display: inline-block!important;
padding: 5px 7px!important;
border: 1px solid #cc9900!important;
-moz-border-radius: 3px !important;
-webkit-border-radius: 3px !important;
border-radius: 3px !important;
font-weight: bold!important;
color: #000!important;
background:  repeat-x 0 0 #f4b61b!important;
cursor: pointer!important;
}

instead of: <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>

use du har <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span> varer

 

bellow add span with price:

{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}

Link to comment
Share on other sites

ad the end of <li> object add: 

<a href="{$link->getPageLink($order_process, true)|escape:'html'}" class="buttoncart" style="">{l s='go somewhere'}</a>

inblockuserinfo.css add this:

.buttoncart{
    position: relative!important;
display: inline-block!important;
padding: 5px 7px!important;
border: 1px solid #cc9900!important;
-moz-border-radius: 3px !important;
-webkit-border-radius: 3px !important;
border-radius: 3px !important;
font-weight: bold!important;
color: #000!important;
background:  repeat-x 0 0 #f4b61b!important;
cursor: pointer!important;
}

instead of: <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>

use du har <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span> varer

 

bellow add span with price:

{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}

 

 

I added the text above in the files mentioned, and now it looks like this: http://gyazo.com/c68a456140533ce5dc77e392c37d2534

It is possible not to add the box below, but just make it so that the first cart have text in two lines and not 1 ? 

 

I really appreciate your help since i am soo bad at this css coding :)

Link to comment
Share on other sites

ad the end of <li> object add: 

<a href="{$link->getPageLink($order_process, true)|escape:'html'}" class="buttoncart" style="">{l s='go somewhere'}</a>

inblockuserinfo.css add this:

.buttoncart{
    position: relative!important;
display: inline-block!important;
padding: 5px 7px!important;
border: 1px solid #cc9900!important;
-moz-border-radius: 3px !important;
-webkit-border-radius: 3px !important;
border-radius: 3px !important;
font-weight: bold!important;
color: #000!important;
background:  repeat-x 0 0 #f4b61b!important;
cursor: pointer!important;
}

instead of: <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>

use du har <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span> varer

 

bellow add span with price:

{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}

Nevermind i solved my problem, but how to i change the color, size and font of the text inside of the cart ? :)

Link to comment
Share on other sites

Hello,

 

Can you help me pls with two information ? 

 

First off I would be interested where would I find the shopping cart text code ,i want to see the  calculation text code.

Second , I want to know if it is possible to edit the code of homeslider,I now I can edit through back-office but I`m more interested about text code.

 

Tnx

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...