You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I added this mod some time ago and it worked like a charm, however all of a sudden the delete icon stoppped showin but the 4th column in both the header, with the word delete, and footer still shows.
Obviously it wont just stoped working if I got it to work before so I must have chnaged something - I tracked back the last 10 or so chnages I made and I've discovered that its all to do with the VAT option in the UK version of 5.1.
Up until last week we were not VAT registered, however we are now and when i added the VAT number and adjested my setting to include VAT the delete button dissapears.
Essentially it now adds (after the price display) "incl. VAT" which makes the price column wider and syops the delete icon from showing.
Any advise on this would be great as I've racked my brains and can't work it out!!
Thanks in advance!
Roski
Offline
Howard (CCPUK) could address this better than I, however I would look under HTML Pages & Elements | Manage Site Elements for any cart display elements that handle VAT and see if your additional delete column is not in there.
Offline
Roski,
I had a bit of fun getting this working as well in the UK version. It uses a different file for the shopping cart contents depending on whether VAT is turned on or off. It isn't shown in the manage site elements menu so you have to manually add the code to the correct file.
The file it uses with VAT turned on is data/elements/ste_cart_contu_vat.txt, so open up that file in a text editor and add the contents html code from this thread with the link to the image. (Alternatively, I think with VAT turned off the file it uses is ste_cart_contu_ivat.txt in the same directory - so open that up and you should see your original modification. Then copy and paste the modification)
Any problems get back to me.
Regards,
Mike
Offline
hi,
i have tried and tried
i have it working fine with NO VAT set - but id i try with VAT INCLUDED - it shows the colum and headers but no graphic of the trash can....
i have tried to follow the info above but am getting no where - can anyone point me in the right direction?
thanks in advance
Charlie
Offline
Hi Charlie,
Did you aplly the mod changes to this file:
data/elements/ste_cart_contu_vat.txt
only works if you use the mod changes and have vat turned on.
hope that helps.
Cheers ;-) ,
Steve
Offline
:-)
Hi
Steve, thanks for that pointer got it working i was editing the file data/elements/ste_cart_contur_vat.txt
not the
data/elements/ste_cart_contu_vat.txt
also need to add the code into other txt file for it to show in the cart (show while shopping)
thanks again - its a great mod
Charlie
Offline
Hi ive just tried installing this mod but nothing comes up in the 'delete' column, you can see it there are items in the cable section to see stuff in the cart. Ive had a look to find an answer but im new to all this and think i might be out of my depth! any help much appreciated!
TIA
Offline
Hi, I can't find the reference to your delete icon on your cart page. You should have something like this: (depending on how you implemented the above mod)
<A HREF="http://www.sparkyselectrical.co.uk/cgi-bin/ccp51/cp-app.cgi?&pg=ste_cart_delete_proc"><IMG SRC="/media/images/button/delete_icon.gif" WIDTH="xx" HEIGHT="xx" BORDER="0" align="absmiddle"></a>
By the way I like your layout
Shawn
Offline
The above post was in reference to a view source. Better explanation would be, did you implement this?
(2) Under HTML Pages & Elements | Manage Site Elements, edit the element named 'Shopping Cart - Contents - Update'. Replace the element with this code (put your image tag in place of 'PUT_YOUR_DELETE_IMAGE_TAG_HERE'):
CODE
<TR BGCOLOR="(CGIVAR)cart_row_color(/CGIVAR)">
<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)">(CGIVAR)cart_linkopen(/CGIVAR)(CGIVAR)cart_prodnumber_display(/CGIVAR)(CGIVAR)cart_prodname(/CGIVAR)(CGIVAR)cart_linkclose(/CGIVAR)(CGIGET TYPE="SUB" VALUE="ste_cart_disp_options" PARAMS="(CGIVAR)cart_prodoptions(/CGIVAR)")</FONT></TD>
<TD VALIGN="TOP" ALIGN="RIGHT"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)">(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)cart_amtprod(/CGIVAR)</FONT></TD>
<TD VALIGN="TOP" ALIGN="RIGHT">
<INPUT TYPE="TEXT" NAME="C-(CGIVAR)cart_id(/CGIVAR)" VALUE="(CGIVAR)cart_prodquantity(/CGIVAR)" SIZE="3">
</TD>
<TD VALIGN="TOP" ALIGN="RIGHT">
<A HREF="(CGIVAR)common_url(/CGIVAR)&pg=ste_cart_delete_proc&ref=C-(CGIVAR)cart_id(/CGIVAR)">PUT_YOUR_DELETE_IMAGE_TAG_HERE</A>
</TD>
</TR>
Offline
hi thanks, i didnt have time to design a complete design so i had to buy a skin ;-) hopefully ill have time later on to redo it once its finished... anyways, i think i had the wrong code in before, now i have
<TR BGCOLOR="(CGIVAR)cart_row_color(/CGIVAR)">
<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)">(CGIVAR)cart_linkopen(/CGIVAR)(CGIVAR)cart_prodnumber_display(/CGIVAR)(CGIVAR)cart_prodname(/CGIVAR)(CGIVAR)cart_linkclose(/CGIVAR)(CGIGET TYPE="SUB" VALUE="ste_cart_disp_options" PARAMS="(CGIVAR)cart_prodoptions(/CGIVAR)")</FONT></TD>
<TD VALIGN="TOP" ALIGN="RIGHT"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)">(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)cart_amtprod(/CGIVAR)</FONT></TD>
<TD VALIGN="TOP" ALIGN="RIGHT">
<INPUT TYPE="TEXT" NAME="C-(CGIVAR)cart_id(/CGIVAR)" VALUE="(CGIVAR)cart_prodquantity(/CGIVAR)" SIZE="3">
</TD>
<TD VALIGN="TOP" ALIGN="RIGHT">
<A HREF="http://www.sparkyselectrical.co.uk/cgi-bin/ccp51/cp-app.cgi?&pg=ste_cart_delete_proc"><IMG SRC="/media/images/button/delete_icon.gif" WIDTH="69" HEIGHT="19" BORDER="0" align="absmiddle"></a>
</TD>
</TR>
inside the shopping cart-contents-update along with the ste_cart_contu_vat.txt like 'steveblueradio' had said in this forum above, as i have vat turned on.... is this right?
Id appreciate any further help.
Many thanks.
Offline
Hi mhaysom you are close try this:
<TR BGCOLOR="(CGIVAR)cart_row_color(/CGIVAR)">
<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)">(CGIVAR)cart_linkopen(/CGIVAR)(CGIVAR)cart_prodnumber_display(/CGIVAR)(CGIVAR)cart_prodname(/CGIVAR)(CGIVAR)cart_linkclose(/CGIVAR)(CGIGET TYPE="SUB" VALUE="ste_cart_disp_options" PARAMS="(CGIVAR)cart_prodoptions(/CGIVAR)")</FONT></TD>
<TD VALIGN="TOP" ALIGN="RIGHT"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)">(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)cart_amtprod(/CGIVAR)</FONT></TD>
<TD VALIGN="TOP" ALIGN="RIGHT">
<INPUT TYPE="TEXT" NAME="C-(CGIVAR)cart_id(/CGIVAR)" VALUE="(CGIVAR)cart_prodquantity(/CGIVAR)" SIZE="3">
</TD>
<TD VALIGN="TOP" ALIGN="RIGHT">
<A HREF="(CGIVAR)common_url(/CGIVAR)&pg=ste_cart_delete_proc&ref=C-(CGIVAR)cart_id(/CGIVAR)">PUT_YOUR_DELETE_IMAGE_TAG_HERE</A>"<IMG SRC="/media/images/button/delete_icon.gif" WIDTH="69" HEIGHT="19" BORDER="0" align="absmiddle"></a>
</TD>
</TR>
Then just make sure you have the actual delete_icon.gif image in the above referenced path.
Shawn
Offline
Hi mhaysom, I deleted the image text to make it clearer:
<TR BGCOLOR="(CGIVAR)cart_row_color(/CGIVAR)">
<TD VALIGN="TOP"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)">(CGIVAR)cart_linkopen(/CGIVAR)(CGIVAR)cart_prodnumber_display(/CGIVAR)(CGIVAR)cart_prodname(/CGIVAR)(CGIVAR)cart_linkclose(/CGIVAR)(CGIGET TYPE="SUB" VALUE="ste_cart_disp_options" PARAMS="(CGIVAR)cart_prodoptions(/CGIVAR)")</FONT></TD>
<TD VALIGN="TOP" ALIGN="RIGHT"><FONT FACE="(CGIVAR)html_small_font_face(/CGIVAR)" SIZE="(CGIVAR)html_small_font_size(/CGIVAR)" COLOR="(CGIVAR)html_small_font_color(/CGIVAR)">(CGIVAR)currency_symbol(/CGIVAR)(CGIVAR)cart_amtprod(/CGIVAR)</FONT></TD>
<TD VALIGN="TOP" ALIGN="RIGHT">
<INPUT TYPE="TEXT" NAME="C-(CGIVAR)cart_id(/CGIVAR)" VALUE="(CGIVAR)cart_prodquantity(/CGIVAR)" SIZE="3">
</TD>
<TD VALIGN="TOP" ALIGN="RIGHT">
<A HREF="(CGIVAR)common_url(/CGIVAR)&pg=ste_cart_delete_proc&ref=C-(CGIVAR)cart_id(/CGIVAR)"><IMG SRC="/media/images/button/delete_icon.gif" WIDTH="69" HEIGHT="19" BORDER="0" align="absmiddle"></a>
</TD>
</TR>
Then just make sure you have the actual delete_icon.gif image in the above referenced path.
Shawn
Offline
hi, i added the above code into the shopping cart-contents-update and the ste_cart_contu_vat.txt as i have vat enabled but i still have an empty column...im going to attempt to re-do the 1st part of this mod just in case something went wrong the first time... cheers for the help! ill let you know how i get on!
Offline
hmm, well, the first bit seemed ok, so i tried turning the VAT off and the delete image wasnt there but the link worked.... but as soon as i turn VAT on it goes again... my button image is in that folder is the rest of the tag ok? should i have 'ccp51/' in front of media? Should i have kept the shoppingcart-contents-update folder original and only have changed the vat .txt file...? any help appreciated! i seem to have got myself into a bit of a hole!
Offline
Awsome MOD man! BIG props to sgreiner
Thanks
Offline
anyone got any ideas???
Offline
Hi myhaysom, the first thing you need to do is get the delete icon to show up in the cart. It seems this is still a path problem since the icon does not display at all.
If I right click on your submit botton the path displayed is:
.
Did you try a relative path:
<A HREF="(CGIVAR)common_url(/CGIVAR)&pg=ste_cart_delete_proc&ref=C-(CGIVAR)cart_id(/CGIVAR)"><IMG SRC="/media/images/botton/delete_icon.gif"></A>
Or try the full path:
<A HREF="(CGIVAR)common_url(/CGIVAR)&pg=ste_cart_delete_proc&ref=C-(CGIVAR)cart_id(/CGIVAR)"><IMG SRC="www.sparkyselectrical.co.uk/ccp51/media/images/button/delete_icon.gif"></A>
Be sure the actual name of the icon image file is correct in the path. Once you get the path right the icon MUST appear. Shawn
Offline
hello, i added the whole path into it and still nothing... even though that when i enter the path wwwsparkyselectrical.co.uk/ccp51/media/ … e_icon.gif into my browser i see the icon....? Am i putting this information in the correct files...? At the moment im putting the code in the file ste_cart_contu_vat.txt and in the html &pages-site elements-shopping cart contents update... is this right...? i wonder that when i turn the vat off the button is there but without an image, if you see what i mean..? basically the button (well the area where it should be) is active but no actual button...? when i right click on the link where the link should be it says the path is
which i take it is wrong... odd!
Offline
oh dear, i seem to have found the reason why its not working, it was ste_cart_contu_ivat.txt not ste_cart_contu_vat.txt....oops! really sorry for mucking you about and i really appreciate your input and help!! cant believe im that stupid!! sorry again!
Offline
Hi myhaysom,
It's good to separate the scripts from the html. Site looks good! I tried your cart in IE, Netscape, Opera and Firefox and it looks like it's working O.K.
Shawn
Offline
Cheers! Thanks for your help
Offline
Hi
I'm having a little difficulty with this mod. I've managed to get everything to display correctly but when I click the Remove button, it gives this message
"There was an error encountered while processing your request. Please select from the menu to continue."
It doesnt delete the item from the cart.
I've put everything back as before and started again but I'm still getting the same error.
Can anyone help please?
Offline