Post by aaron1988 » Mon Jul 21, 2014 9:00 pm

Hi,

Wondered if someone help me basically we have product options on this page:

http://www.inkoptions.co.uk/inkjet?product_id=1015

Now when you choose Black, Cyan or Yellow the Product Name stays the same once added to the Cart is there an easy way to change this so it is clear what colour is stated? Like name the Product Name to change to the colour selected.

Thanks
Aaron

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by labeshops » Mon Jul 21, 2014 9:43 pm

The product name does, but it shows the options selected under the product name:

Brother Compatible LC125XL Cyan Cartridge
- Colours: Cyan

So not sure what the issue is?

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by aaron1988 » Mon Jul 21, 2014 10:14 pm

Hi but if you choose Magenta, the Product Name is still the Same, so the customer might get confused to why the actual product name is still "

Re: Product Options and Product Name question

Unread postby labeshops » Mon Jul 21, 2014 1:43 pm
The product name does, but it shows the options selected under the product name:

Brother Compatible LC125XL Cyan Cartridge" when they chose Magenta.

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by labeshops » Mon Jul 21, 2014 10:46 pm

Well right. That is because you have "cyan" in the name set for that product. Why not make it "Brother Compatible LC125XL Ink Cartridge" or "Brother Compatible LC125XL Color Cartridge" and then let the option indicate the color choice as normal?

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by aaron1988 » Mon Jul 21, 2014 10:49 pm

I said about this to Client, but because they are using the product as individuals as well they need the name on there if you know what i mean as, Black, Cyan, Magenta & Yellow are listed as seperate products.

Aaron

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by labeshops » Mon Jul 21, 2014 11:42 pm

Still confused.

If they are separate products, they shouldn't have options, so then there wouldn't be the issue. I mean if you have the product listed as "cyan" why would your customer expect to order a color other than cyan when they click on it? As a customer, this would be confusing.

You could always have the other colors as related products.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by aaron1988 » Mon Jul 21, 2014 11:45 pm

Yh i see what your saying, but client wants to give them a choice

Aaron

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by labeshops » Tue Jul 22, 2014 2:54 am

Well you could echo the options name into the title probably. Not something I've tried, but you might try something like:

edit your template cart.tpl

Find:

Code: Select all

<td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
and change to:

Code: Select all

<td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?> - <?php echo $option['value']; ?></a>
Not 100% sure this will work and I haven't tested it, but in theory it should.

If it doesn't work, you might try removing the line above and editing:

Code: Select all

<?php foreach ($product['option'] as $option) { ?>
                - <small><?php echo $option['name']; ?>: <?php echo $option['value']; ?></small><br />
                <?php } ?>
to

Code: Select all

<?php foreach ($product['option'] as $option) { ?>
                - <?php echo $product['name']; ?>: <?php echo $option['value']; ?><br />
                <?php } ?>
You might need the foreach check to make it work for each product, not totally sure.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by aaron1988 » Tue Jul 22, 2014 3:03 am

Hi,

Thanks will look at this :)

Thanks
Aaron

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am

Post by aaron1988 » Tue Jul 22, 2014 4:04 am

Hi, didnt change anything, so may need to rethink of a way as this will be a good mod if we can get working :)

Aaron

Active Member

Posts

Joined
Thu Jan 27, 2011 10:03 am
Who is online

Users browsing this forum: No registered users and 194 guests