12 / 12
Aug 2014

I sell several products on my site. Each on its own page. I use the popup cart and, after enabling price editing, on the bottom left corner I see the phrase on green background explaining the possibility to choose price.

The problem is that this box is shown also for products which do not give the possibility.

One example is this page: http://www.fotocomefare.com/conoscere-scegliere-reflex-digitali-obiettivi/

How can I fix this?

  • created

    Aug '14
  • last reply

    Aug '14
  • 11

    replies

  • 1.6k

    views

  • 4

    users

  • 4

    links

That message is one that you've manually customized in the cart.



Custom text that you enter into your cart on a certain page will appear in your cart every time it is opened on that page, the text is connected to the cart itself and not the products on that page.



If you remove that extra text from your cart code on pages where you aren't selling any products with editable prices that will prevent it from appearing there.

Sorry but that text was automatically added by e-junkie when I enabled price editing. I didn't add it manually.

I am sorry, but anything our system adds in automatically would be in English. Here is your View Cart code as you have it on your website:

<script language="javascript" type="text/javascript">

<!--

function EJEJC_lc(th) { return false; }

function EJEJC_config() {

EJEJC_POSTCALL=true;

EJEJC_PLAYNICE=true;

}

function EJEJC_shown() {

ejejc_jQuery("#btnPP").attr("src", "http://www.fotocomefare.com/wp-content/themes/FCFheadway/img/PayPalPagaOra.gif");

ejejc_jQuery("#btnUpdtCart").attr("value", "Aggiorna il carrello");

ejejc_jQuery("#btnContShop").remove();

ejejc_jQuery("#country1").attr("innerHTML", "Invia al Paese");

ejejc_jQuery("#state1").attr("innerHTML", "Codice Postale");

ejejc_jQuery("#state2").attr("innerHTML", "Aggiorna il carrello dopo l'inserimento");

ejejc_jQuery("#dscnt_cd").attr("innerHTML", "Codice Sconto");

ejejc_jQuery("#discount2").attr("innerHTML", "Aggiorna il carrello dopo l'inserimento del codice sconto, se non si aggiorna da solo");

ejejc_jQuery("#btnContShop").attr("value", "Continua gli acquisti");

ejejc_jQuery("#tdPmnt").attr("innerHTML", "Inserisci il prezzo che desideri pagare. </br> Il minimo è 1€ per sostenere alcuni costi di gestione.");

ejejc_jQuery("#EJEJC_closeWindowButton").attr("innerHTML", "<b>Chiudi</b>");

}

// -->

</script>

<script src='http://www.e-junkie.com/ecom/box.js' type='text/javascript'></script>



You will see the extra text in the line that starts with "ejejc_jQuery("#tdPmnt")". You can just edit that code to remove the text from the cart on that page.

Hi,

I added that text only to replace the existing one with the Italian version.

If I remove that line. I still have the green box that was automatically added by e-junkie.

We only show that green box when the buyer's cart contains items with an editable price. Unfortunately, the only way to customize that message is to replace it on a page-by-page basis with cart customization code in each page, and that customization would appear regardless of whether the buyer's cart contains any editable-price items. If you'd rather just remove the message, you can use this line:



ejejc_jQuery("#tdPmnt").empty();



...or you may prefer to keep the standard "Checkout:" label we'd normally show there when there aren't any editable-price items, and perhaps customize that label like so:



ejejc_jQuery("#tdPmnt").attr("innerHTML", "<b>Cassa:</b>");

Thanks, this can solve my problem. However, there must be something wrong with the code, since on my site the text is shown also when the cart contains products whose price can't be edited.

For example, here http://www.fotocomefare.com/conoscere-scegliere-reflex-digitali-obiettivi/. If you click on the image after the title, the cart opens and shows the text.

If I remove my customization with the Italian text, still the green box is shown, without text in it.

Hm, your site appears to be down at the moment; browsing to the page link you provided, or even just your homepage, currently just displays the message:



Nessun Contenuto da Mostrare



Nessun contenuto da mostrare. Per favore avvisa l'amministratore del sito o fai login.





We'd be glad to examine your page once it's available to browse again.

That is happening because you still have this line in your cart customization code on that page:



ejejc_jQuery("#tdPmnt").attr("innerHTML", "Inserisci il prezzo che desideri pagare. </br> Il minimo è 1€ per sostenere alcuni costi di gestione.");



To clarify what's going on here:

Normally, the #tdPmnt element in the cart just says "Checkout:", but when the cart holds any editable-price items, we change the contents of that element to add an explanation about editing prices. However, when you customize the contents of #tdPmntt, that overrides anything we'd otherwise display in there, regardless of whether the cart contains editable-price items or not.



There doesn't appear to be any way to customize the price-editing explanation ONLY when the cart contains editable-price items. Using jQuery("b[style*='DAEA89']")...etc. ought to work for this, but doesn't for some reason; perhaps the version of jQuery our cart uses was too old to support that or had a bug. Since you're using ejejc_jQuery statements for cart customization, your site must be loading its own (probably more recent) version of jQuery, so you might try using that rather than our cart's version, in a separate SCRIPT block like so:



<script type="text/javascript">

$("b[style*='DAEA89']").attr("innerHTML","Custom stuff here");

</script>

Ok, let me see if I understood.

Are you suggesting to use that script to customize the appearance of the cart only on pages selling products with editable price?



Now I have the cart code on all pages. To correctly use your script would I have to add it only on pages having editable price products?



In this case would it be enough to use PHP to use different cart codes for different product pages?

Hi,



That's correct, only use the script to customize the appearance of the cart on those pages which have items with editable prices. You can safely use different customization codes on different pages, and if you can accomplish that via PHP code on your site that should be fine.