Page 1 of 1

Product Code not appearing front end

Posted: Mon Apr 16, 2018 3:56 am
by tony2011
I have made a change and I cannot work out what I have done but basically I can add a product code in the admin (I deleted the model option by removing the necessary code) and the code saves and shows up in the SKU. On the front end it no longer appears (I have removed the 'add to compare and wishlist'). However, I have used a plugin that moved my old database of products over to the new site and those product codes are appearing both front end and backend. I am confused. Any ideas?

Re: Product Code not appearing front end

Posted: Mon Apr 16, 2018 7:31 am
by straightlight
No OC version posted. Although, see this post: viewtopic.php?f=202&t=203281&p=719284#p719228 which is for the categories.

Re: Product Code not appearing front end

Posted: Thu Apr 26, 2018 5:42 am
by tony2011
I am using OC 3.0.2.0. I think I have narrowed it down to an earlier issue which I was trying to resolve. I wanted to remove the model from the product admin form - I went through a deleted everything with 'model'. I put this back in to see if it would help me locate the issue of the product code and it does! Slight problem - the model is appearing as product code. I enter a model code and it shows on the frontend as a product code. Can someone advise what I can do to fix it?

Re: Product Code not appearing front end

Posted: Sun Apr 29, 2018 3:55 am
by tony2011
Anyone? I have tried replacing admin files from a new OC installation but no luck... completely stuck. ??? :-\

Re: Product Code not appearing front end

Posted: Sun Apr 29, 2018 5:40 am
by sw!tch
By product code are you referring to SKU? (e.g You want SKU to show on the product info page? )

Re: Product Code not appearing front end

Posted: Mon Apr 30, 2018 1:59 am
by cyclops12
tony2011 wrote:
Thu Apr 26, 2018 5:42 am
Slight problem - the model is appearing as product code. I enter a model code and it shows on the frontend as a product code. Can someone advise what I can do to fix it?
This is how oc normally functions.
What is it you are specifically trying to achieve ?

Re: Product Code not appearing front end

Posted: Mon Apr 30, 2018 3:59 am
by tony2011
Essentially, I want the SKU to be the product code frontend. My DB and 1000+ products have SKUs and not model numbers which effectively makes the 'model' section in the product option form redundant hence why I was trying to remove it. See the screenshots of what is happening at the moment.

Re: Product Code not appearing front end

Posted: Mon Apr 30, 2018 4:20 am
by xxvirusxx
You have added in product.php from controller?
After: $data['model'] = $product_info['model'];

Code: Select all

$data['sku'] = $product_info['sku'];
And on product.twig after <li>{{ text_model }} {{ model }}</li>

Code: Select all

<li>{{ text_sku }} {{ sku }}</li>
And still not show?

Re: Product Code not appearing front end

Posted: Mon Apr 30, 2018 4:41 am
by cyclops12
tony2011 wrote:
Mon Apr 30, 2018 3:59 am
Essentially, I want the SKU to be the product code frontend. My DB and 1000+ products have SKUs and not model numbers which effectively makes the 'model' section in the product option form redundant hence why I was trying to remove it. See the screenshots of what is happening at the moment.
Well try this vqmod i made, it just changes the product code to the sku code

Re: Product Code not appearing front end

Posted: Mon Apr 30, 2018 5:08 am
by tony2011
cyclops12 wrote:
Mon Apr 30, 2018 4:41 am
tony2011 wrote:
Mon Apr 30, 2018 3:59 am
Essentially, I want the SKU to be the product code frontend. My DB and 1000+ products have SKUs and not model numbers which effectively makes the 'model' section in the product option form redundant hence why I was trying to remove it. See the screenshots of what is happening at the moment.
Well try this vqmod i made, it just changes the product code to the sku code
Super! This has worked ;D Thank you

Re: Product Code not appearing front end

Posted: Mon Apr 30, 2018 2:10 pm
by cyclops12
Glad to be of help.