Adding Google Image search button to Wordpress site - php

I want to create an e-shop and I want to redirect customers to google images to see photos of the produc (if there are). How can I retrieve the product sku and provide a button which directs (in a new tab) customers to google images search results by that sku?
thanks in advance

Google Image search can be done on your page by going through this tutorial on Google's website TUTORIAL
As far as retrieving the product SKU, that depends how you saved the product SKU in the database. If you are talking about the manufacturer's barcode, I don't think you can just magically come up with that. You should save the barcode in a custom field for each product in your database, then call the custom field using the Wordpress function get_post_meta

Related

Final image form fancy product design fpd_data?

I am using fancy product design plug-in for woo commerce in my wordpress site.
After an succesfull order, fancy product data is saved in order_items_meta table with fpd_data key.
I manage to fetch data through order number and want to show final images(canvas) in my print for delivery note(print invoice/reciept) from fpd_data.
Original fetched data is in this format:
"{\"product\":[{\"title\":\"Marshmallow View\",\"thumbnail\":\"https:..........
After stripslashes(), i am getting :
{"product":[{"title":"Marshmallow View","thumbnail":"htt...........so on
Thanks in advance.

How to import bulk products in Facebook shop?

Im using codeigniter3. Its E-commerce website and have above 7000 products. Facebook shop option don't allow to upload bulk products. its just allow to upload 1 product at a time. Its very hard to upload 7000 products manually.
Kindly give me some sample or right path to achieve this goal.
Thanks.
Here's a step by step...
Open Business Manager > Assets > Catalogues
Locate the catalogue used for the Facebook Shop Tab (you will need at least one product in your Facebook Shop for the catalogue to appear)
Click the Catalogue Name and navigate to the Product Data Sources tab
Add Data Source > Add New Product > Use Data Feed **
Download the CSV Template and fill in the required columns.
On the same page, Choose "Upload Once", Upload the file, give it a name, set the currency and Start Upload
You're all done!
**If you already have a product feed set up so you can tag products in posts, you can use the same data source and point it to your shop tab:
Locate the catalogue feed coming from your website
Click the Catalogue Name and navigate to the Product Data Sources tab
In the "Last Update" column, there will be a URL, COPY THAT url.
Go back to Business Manager > Assets > Catalogues
Locate the catalogue used for the Facebook Shop Tab
Click the Catalogue Name and navigate to the Product Data Sources tab
Add Data Source > Add New Product > Use Data Feed
Choose "Set a Schedule"
Paste the copied URL in to "Data Feed URL" (you won't need a username or password)
Set the schedule, Give it a name, Set the currency and Start Upload
You're all done!
If you need any help, give me a shout!
There is currently no public API for this. You will have to apply for the Alpha here:
https://developers.facebook.com/docs/pages/shops-api
Currently, businesses can create a Shop section on a Page via self-serve Page publishing tools or through select third party eCommerce platforms like Shopify. We're now expanding our alpha test to additional third party eCommerce platforms. Through this API, platforms can offer their merchants the ability to sell products right on their Facebook Page via the same tools they are using to manage their eCommerce business.
Thanks

Creating a woocommerce store that gets products from another website

I am in need of guidance:
I need to create a woocommerce store that will get its products from another website like this one. Is it possible to make it to auto update? For example, every time a product is introduced into the first store, the same product will appear in my woocommerce store?
Thanks for your time!
You can try using file_get_contents() to read the other website then you can parse the pages you receive to select the products and display your own page on the fly.

Wordpress WooCommerce E-Commerce Additional Customer Profile Customization

I am building an E-Commerce Website with Wordpress using the WooCommerce plugin. Trying to add a feature for customers to add a photo to their profile page. I want this to be manadorty so if the client did not upload photo, I want it to be requested at the process of checkout.
How should I go about this, I been looking all day and can't even find the right file that I am supposed to be editing. Thanks in advance.
You need :
Add a form in my-account.php (Check woocommerce_before_my_account hook for this)
Create a custom code to save the file in wp_usermeta table (Check add_user_meta() function ).
Check woocommerce hook after_woocommerce_pay to check if there is a photo associated to current user

Is it possible to create a new product by class methods in virtuemart 2?

I have developed a virtual store using virtuemart 2.0.10 and I need the products in a given category have a different flow of purchase.
Is there a way, from the data of an existing product (with name, price, description, etc.) to create a new product with new id and sku, using an image located in a known directory? All done on the front end, as user interaction, using classes of MVC framework of virtuemart 2.
Needs to be done this way for the product to be added to cart separately, even though the same product base, each with its resized image, and when you click it to open the product details displaying a custom image.
If anyone know a way to do, please help! I looked at the classes responsible for registering products in virtuemart but do not know how to do safely from the front-end.
The first step (redirect user to component and create a custom image) is already done and working, the image is saved in directory and its url recorded in session
Take a look at the VirtuemartControllerProduct::CloneProduct function. It will point you down into the VirtueMartModelProduct::createClone function where the work actually goes down.

Categories