Product with options?

General Support for technical Issues relating to AlegroCart
Post Reply
Bluesplayer
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Product with options?

Post by Bluesplayer » Tue Jan 29, 2013 1:37 am

Hi

There seems to be an issue with one screen when adding options to products. When you select 'Product with Options' and attempt to edit the settings it will not accept the bar code (does accept same bar code on product - option setting) neither is it remembering the dimension setting. You have to edit the settings on this page to add the image to the product.

Regards

User avatar
leo
admin
Posts: 4320
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Product with options?

Post by leo » Tue Jan 29, 2013 3:56 am

I cannot reproduce this error. Try to re-upload your admin files. May be one of them is corrupt.
Please check your database as well. May be the barcode and dimensions are saved but they are not visible when you go back, i.e. it is about a template issue .

Bluesplayer
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Product with options?

Post by Bluesplayer » Tue Jan 29, 2013 8:13 am

leo wrote:I cannot reproduce this error. Try to re-upload your admin files. May be one of them is corrupt.
Please check your database as well. May be the barcode and dimensions are saved but they are not visible when you go back, i.e. it is about a template issue .
Yes it does appear to be a template issue but aren't the admin templates the same?

This is the screen that won't accept the barcode:

Image

Same barcode that is being accepted on this screen:

Image

I was mistaken about the rest of the problems as it does appear to remember settings. It just won't accept the barcode.

User avatar
leo
admin
Posts: 4320
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Product with options?

Post by leo » Tue Jan 29, 2013 1:21 pm

85048000013 is only 11 digits. So, either 1 is missing or it is UPC encoding.

Bluesplayer
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Product with options?

Post by Bluesplayer » Tue Jan 29, 2013 1:38 pm

leo wrote:85048000013 is only 11 digits. So, either 1 is missing or it is UPC encoding.
Yeah you are right, but it you look at the 2nd image the 13 digits are there. I can see what is happening now though. As I just copy and paste the barcode as it is sent to me into the box it is being cut off at 11 digits because I am pasting it with 2 spaces which are being counted as digits. The box is removing the last 2 digits which the other pages are not doing - see 2nd image. When I remove the 2 spaces it is reducing the digit numbers to 11 hence the failure. I will look into it a bit to see why the box is acting differently to the other but at least I can now see what is happening.

Cheers

Bluesplayer
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Product with options?

Post by Bluesplayer » Tue Jan 29, 2013 3:49 pm

Thanks for pointing me in the right direction. Fixed it now. All I had to do was make the the barcodefield found in product_with_options.tpl 2 digits longer: maxlength="15" instead of maxlength="13". This will allow me to add the barcodes with the spaces before editing them which is a lot quicker for me.

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Product with options?

Post by Brent » Tue Jan 29, 2013 4:45 pm

The other option is if you receive these in something like an excel file, you could strip the spaces from all bar codes in one operation saving you the work from doing it each time when adding to the products in the cart.

Post Reply