Kryptronic Software Support Forum

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.

#26 10-08-2004 14:31:50

roski316
Member
Registered: 09-07-2004
Posts: 10
Website

Re: Delete Icon In Shopping Cart

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

 

#27 10-11-2004 10:27:39

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Delete Icon In Shopping Cart

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.


Nick Hendler

Offline

 

#28 10-13-2004 16:29:19

roski316
Member
Registered: 09-07-2004
Posts: 10
Website

Re: Delete Icon In Shopping Cart

Thanks Nick,

Took your advice but all the VAT related code looks a bit scarry (I'm a learner) so i'll add a link to the topic in the UK forum.

Regards
Roski

Offline

 

#29 10-13-2004 21:53:55

mikeyt
Member
Registered: 09-02-2004
Posts: 17

Re: Delete Icon In Shopping Cart

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

 

#30 10-14-2004 15:21:36

roski316
Member
Registered: 09-07-2004
Posts: 10
Website

Re: Delete Icon In Shopping Cart

Mikeyt - Thanks so very much!!

Regards
R

Offline

 

#31 12-02-2004 19:15:36

anavarro
Member
Registered: 07-15-2004
Posts: 13
Website

Re: Delete Icon In Shopping Cart

I must say...

that HACK is...

AWESOME!!!!!!

Thanx guys!!!!

Offline

 

#32 12-02-2004 20:44:45

thedon122
Member
Registered: 01-21-2004
Posts: 155

Re: Delete Icon In Shopping Cart

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

 

#33 12-03-2004 10:58:42

steveblueradio
Member
From: Belfast, Northern Ireland
Registered: 06-28-2004
Posts: 755
Website

Re: Delete Icon In Shopping Cart

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


I'm Gene Hunt, Your DCI, And it's 1973, Nearly Dinner Time, I'm havin hoops........

Cheers,
Steve
-------------------

Offline

 

#34 12-06-2004 18:22:31

thedon122
Member
Registered: 01-21-2004
Posts: 155

Re: Delete Icon In Shopping Cart

  :-) 
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

 

#35 05-14-2005 07:03:34

mhaysom
Member
Registered: 04-11-2005
Posts: 168

Re: Delete Icon In Shopping Cart

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

 

#36 05-14-2005 13:11:41

Shawn
Member
Registered: 09-24-2004
Posts: 216

Re: Delete Icon In Shopping Cart

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

 

#37 05-14-2005 13:25:13

Shawn
Member
Registered: 09-24-2004
Posts: 216

Re: Delete Icon In Shopping Cart

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

 

#38 05-14-2005 17:35:32

mhaysom
Member
Registered: 04-11-2005
Posts: 168

Re: Delete Icon In Shopping Cart

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

 

#39 05-14-2005 20:06:38

Shawn
Member
Registered: 09-24-2004
Posts: 216

Re: Delete Icon In Shopping Cart

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

 

#40 05-14-2005 20:10:22

Shawn
Member
Registered: 09-24-2004
Posts: 216

Re: Delete Icon In Shopping Cart

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

 

#41 05-15-2005 06:16:14

mhaysom
Member
Registered: 04-11-2005
Posts: 168

Re: Delete Icon In Shopping Cart

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

 

#42 05-15-2005 06:31:06

mhaysom
Member
Registered: 04-11-2005
Posts: 168

Re: Delete Icon In Shopping Cart

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! smile i seem to have got myself into a bit of a hole! smile

Offline

 

#43 05-15-2005 16:59:45

iandee75
Member
Registered: 03-14-2005
Posts: 135

Re: Delete Icon In Shopping Cart

Awsome MOD man!  BIG props to sgreiner

Thanks


Mad Cowboy Records : 12’’, 7’’  Vinyl, CD, Singles, Albums.: Dance. Pop, Indie

Offline

 

#44 05-17-2005 04:18:40

mhaysom
Member
Registered: 04-11-2005
Posts: 168

Re: Delete Icon In Shopping Cart

anyone got any ideas??? sad 

Offline

 

#45 05-17-2005 13:06:28

Shawn
Member
Registered: 09-24-2004
Posts: 216

Re: Delete Icon In Shopping Cart

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

 

#46 05-17-2005 13:35:48

mhaysom
Member
Registered: 04-11-2005
Posts: 168

Re: Delete Icon In Shopping Cart

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! smile

Offline

 

#47 05-17-2005 13:43:56

mhaysom
Member
Registered: 04-11-2005
Posts: 168

Re: Delete Icon In Shopping Cart

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!  smile 

Offline

 

#48 05-17-2005 19:38:26

Shawn
Member
Registered: 09-24-2004
Posts: 216

Re: Delete Icon In Shopping Cart

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

 

#49 05-18-2005 07:36:18

mhaysom
Member
Registered: 04-11-2005
Posts: 168

Re: Delete Icon In Shopping Cart

Cheers! Thanks for your help smile

Offline

 

#50 06-01-2006 12:48:33

juiceland
Member
From: Liverpool
Registered: 11-17-2005
Posts: 14

Re: Delete Icon In Shopping Cart

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?



  - Professional Juicers, Blenders, Sprouters, Dehydrators, Water Coolers wheatgrass and other health related products available to buy online.

Offline

 

Board footer