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?
No OC version posted. Although, see this post: viewtopic.php?f=202&t=203281&p=719284#p719228 which is for the categories.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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?
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.
Attachments
model.PNG (11.41 KiB) Viewed 1099 times
product_code.PNG (3.51 KiB) Viewed 1099 times
You have added in product.php from controller?
After: $data['model'] = $product_info['model'];
And on product.twig after <li>{{ text_model }} {{ model }}</li>
And still not show?
After: $data['model'] = $product_info['model'];
Code: Select all
$data['sku'] = $product_info['sku'];
Code: Select all
<li>{{ text_sku }} {{ sku }}</li>
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Well try this vqmod i made, it just changes the product code to the sku codetony2011 wrote: ↑Mon Apr 30, 2018 3:59 amEssentially, 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.
Super! This has worked Thank youcyclops12 wrote: ↑Mon Apr 30, 2018 4:41 amWell try this vqmod i made, it just changes the product code to the sku codetony2011 wrote: ↑Mon Apr 30, 2018 3:59 amEssentially, 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.
Who is online
Users browsing this forum: Bing [Bot] and 408 guests