Custom options not showing Up in front-end Magento Community Edition - php

I wrote a script for importing products in Magento community edition 1.5.10 from CSV file. The products are displaying fine in both front end and backend
The problem is the Product custom options(size and Color). It is not displaying in the front end. But it is displaying properly in admin.
When I edit the same product in adminpanel and saving without modifying anything, then its showing up fine in front end.
Please help me to figure out this problem
Thanks in advance
Selva.

I too had the same problem with the custom option. Then i found out the solution after a long search in the database. You just forget to insert the values in "catalog_product_entity_varchar" table.
For custom option we need to insert 4 records in the "catalog_product_entity_varchar" table.
After inserting the table it works well.. Hope it will helps you..
Thanks
Rajamani.

This almost always means that you've forgotten to add data to a necessary table, very likely an indexing table. Magento often clones the same data over to several tables to use for fast lookups.
Does your script import using objects, or does it write direct SQL queries to enter the data? Try reindexing everything on the site first, hopefully that will fix it. If not, you'll need to spelunk in the DB to find the table that you are failing to enter data for.
Hope that helps!
Thanks,
Joe

Try to refresh the Magento caches and re-indexing.
I Hope custom option will display

For me it was fixed by setting the has_options attribute to 1 - from catalog_product_entity table. Also make sure that the options_container attribute have the value 'container2' for products with custom options - this attribute is found in catalog_product_entity_varchar.

Related

Need to manual update custom post after wp-all-import run

I everyone first of all sorry for my English, not a native speaker here.
I have a problem that is probably WordPress related and not Wp-All-import fault, but this is giving me headache.
I have a custom post (Properties) which has some custom fields, one of it is a true/false checkbox to set the property as featured.
Everything is working fine, the value get updated and is actually visible in the backend, so properties that need to be set as "featured" are actually ok.
The problem is that the posts are not showing on frontend, unless I manually update them, doing so will fix the problem and show the posts correctly.
The website is kind of a mess, we took it over because the client was unhappy with his previous service, and many template files have been changed or commented not following best practice...
I had a similar problem once (well... not really) , where adding terms for a taxonomy (while creating the post or just from the classic taxonomy page) will lead to an infinite loading, that was because of too many blanks space in the functions.php, but this is not the case.
I just don't get what it could be, if manual update is working is it a wp-all-import related problem? But the import is fine, I mean the checkbox is actually set to true....but the posts are not showing unless I manually update them.
Thank you in advance
I would like to add that exact same problem started to happen on one of our sites recently. It all worked fine for better part of two years but since two weeks ago, I have to manually update posts after import to see the changes on frontend.
Edit: I think this might be an issue with Search & Filter Pro cache

Custom table queries in WordPress

I am developing a WordPress site for a client and they would like me to setup a custom page that allows logged in users to query a custom table in the WordPress database. I'll be naming the custom table 'inspectors' and will import the data from a CSV file.
I've found this helpful tutorial on doing this
But the 'fly in the ointment' is that they want the results to be displayed according to location - so the user would enter a postal code or town and will get results for inspectors that are located within a 50 k radius. I'm pretty sure I could manage a basic query to the custom table, but getting it to return location-based results is beyond me.
Is it even possible - and if so, is it worth the time and effort it would take to make it happen - or is there a simple solution I just don't know about?
Also, they also would like me to create a custom form (that is available only to the admin user role) so they can update the info from WordPress and not have to update the info in the spreadsheet. They'd like to be able to export the data in the table to CSV easily too ...
Thanks for any help on this!
Refer the below link and write your own custom queries.
http://codex.wordpress.org/Class_Reference/wpdb

Oracle sql dynamically update a column when another column from another table is updated from a user through a client server web site

Please can anyone help me?
I created a database for a factory. I am stuck at the point where the quantity of a particular product could be updated from an order from a new customer (on a website i think with get method from php).
To make it clear.. I was thinking to have:
Product(code,name,value,quantity available),
Order(ordernumber,productcode,quantity needed)
So if someone order 2 items of the same product code and the factory manufacture those 2 items how can we see this change automatically done in the database, before and after. Also how can we accept value of 0 when the factory has no item of a particular product (by counting)? Thank you
sounds like a work for a trigger
take a look to this examples on how to deal with triggers::
An Introduction to Triggers
Trigger Syntax and Examples

Presta shop adding products with PHP/SQL

I have a question about importing products directly to Prestashop database.
I'm adding the products with sql statment to all the required tables in the database. The products show up in the back-office the only problem that i have is that the products dont show up on the web page.
When i navigate to the product section in the back office the problem seems to be the defualt category and link rewrite. I get an error that the defualt category is not set although every table that containes the id_category_default field is set up the right way.
I could use some help in how to solve the problem.
you have to set in ps_product.id_category_default the key of table ps_category.id_category
Have you set your link rewrite ? You'll need to generate this yourself in your import script if you're importing directly into the SQL.
Also make sure you have added the text for each language that you use on the site.

Imported products not visible in OpenCart admin panel?

Benn struggling with this issue for some time now. I have used a mod for importing a CSV file with my products to my OpenCart installation. The mod is called CSV import Pro
Then products are visible on the front end an I can see them in the db table as well. Only problem I have is that they are not visible in my admin panel which is pretty strange.
Has anybody encountered this problem before? The company that I purchased the mod from are not the quickest when coming to supporting the mod.
All ideas, tips and resources are welcome.
I have been struggling with this issue for a long time. Using Import/Export Tool with multiple languages. Basically I was importing just one of the languages, it worked fine on the front end and I was able to see all products but I could only see two products at the back-end. My back-end language was English and my Front End - Bulgarian. It picked up the Bulgarian but unless your back-end is also set to the same language you will experience problems. Other option is just populate other language columns as well.
I had the same issue, after looking for some hours I found the "guilty" table ,
it's the
produt_to_store
table
set your product_id to the default store id (0) and voila !
INSERT INTO `product_to_store` (`product_id`, `store_id`) VALUES ('58366', '0');
I saw something similar to this a while back and it turned out that the start date and end date values were missing for the products for their availability. Obviously I can't guarantee that this is the issue, but I would recommend you check that each and every value is being set for the products. I've not used CSV import Pro personally but I believe it's pretty popular and is likely due to missing data that it's not showing properly
I was using another mod to extract and import from a Zencart database to Opencart. All customers were imported but did not show up in Admin, although viewable in the db table. Turned out that the customer_group_id was 8 (presumably in Zencart) and the necessary id number in Opencart is 1. Updated the customer_group_id column to show 1 instead of 8 and all the records became visible in Admin. I found this out by creating new customers records and then comparing them to imported ones to see any differences.

Categories