How to use default Rating component? - aem

For some e-commerce project, I would like to give the online shop customers the possibility to rate the merchant products (something like product rating in amazon). I have found out, that there is a AEM6 Default Rating Component. Can somebody give me a guidance how to use the Default Rating Component?

When you double click on the placed Rating component, an edit dialog opens up.
You can configure the Rating component to either allow users to submit a rating or show the average results of ratings already submitted.
Select the Display Only option. If checked, the Rating component will only display the average ratings submitted for the page. If unchecked, it will allow users to submit ratings for the page by clicking on the stars. Default is unchecked.
To can see the full guide about the rating component here

Related

Is there a way to display the Product Title before the Brand Name in Facebook Page Shop?

I exported all the tags required by Facebook from my third-party online store (Lightspeed) and the data stream works as expected in terms of automatic updates, but products on my facebook page shop (Shop tab) are displayed with the brand name first — L'Oratoire Saint-Joseph — followed by the product title.
See it live : https://www.facebook.com/osaintjoseph/
The unfortunate result is that the text under many products is exactly the same. Is there a way to display the Product Title before the Brand Name?
Lightspeed support told me I had to take it up with Facebook. I am awaiting their reply. See my questions in the fb developer forum here : https://developers.facebook.com/settings/developer/community/
There are 3 ways to add products to Facebook Shop:
Manually
Data feed (e.g. CSV import)
Third party plugins (which you’re using).
Manually – the user is only able to enter 4 properties; title, description, image & variant. See facebook.com/business/help/293945421560847. There is no concept of product brand.
Data feed – this allows for additional properties, such as brand name. In the table, see example files and select product (csv, tsv or xml) facebook.com/business/help/120325381656392?id=725943027795860. However it looks like all Facebook does is concatenate string, that's the product title becomes "{brandName} – {productName}". It look like brand name is not used anywhere else. Nor is there an option to change the way it's displayed. If you edit the product, you should be able to see this in the Product Title.
Shop tab (third party plugin) – (May be it's me, but I found their documentation hard to follow) – They send an XML feed to Facebook support.shoptab.net/hc/en-us/articles/200583466-XML-Feed-for-Facebook-Storefront-with-ShopTab. They do not appear to have a concept of brand. Try and examine the data. I would expect the brand name to appear in the product title. Alternatively they allow for CSV, which also doesn't contain brand name support.shoptab.net/hc/en-us/articles/200583906-CCNow-Integration-with-ShopTab-s-Facebook-Store-App
Summary
If possible, examine the data that is sent from Shop tab to Facebook.
Try and find out if you’re able to exclude / alter the string concatenation of brand name from product title in Shop tab. If not raise a support ticket with them.
Alternatively see if you can manually edit the product title in Facebook. It’s not a long-term fix, but helps understand how the system are integrated.

How to redirect a associated product to its configurable product

I am using Magento 1.9.2.1 and I am using the native swatches option. I am trying to only show the associated products on the catalog page and not the configurable product. But I am hoping that by clicking on any of the associated products, it would take the customer to the configurable product.
So lets say that I am selling a cap that has a red and brown option. I want the catalog to show the red simple product and the brown simple product. But when the customer clicks on either of the simple products, it will take them to the configurable product and they can select a color there instead.
Is there a easy way to do this?
I just found an extension that works
https://github.com/Mestrona/Mestrona_ForwardToConfigurable
I'm using JRD Redirect Simple to Parent for exactly this. I tried Mestrona as well, but it sets the URL to that of the simple product, which is a problem for bookmarking and the like when the user then changes up the configuration. JRD sets the URL to that of the parent and my plan is to then add a query string so that if the URL is bookmarked, I can route it to the same configured product.

Woocommerce - How can I create an order form/quote to be added to a cart?

I'm working for a client who prints on canvases, he needs the site to request the user's information/preferences of what kind of print job is to be done.
The user fills a form attaching an image of what should be printed on a canvas with predefined prices for different canvases or print surfaces of different sizes, on submission of the form, the fields of the form are transferred to the cart.
When an order has been placed, the user can checkout by paying for the products once ready.
I'm trying to recreate the order form here nifty250.co.za at the bottom of the page, exempting the Instagram login part.
I'm aware of a plugin like Gravity form with an add-on that might be able to do this, but I'm not sure it can do as I intend.
Products are actually a custom post type, so you can use wp_insert_post to insert a new product. After you insert, you get the id of the new product post type, use update_post_meta to set a meta key and meta value as _visibility and visible respectively. you can set the visibility also.
This answer shows how to insert product .
To add to cart
global $woocommerce;
$woocommerce->cart->add_to_cart( $product_id );

Facebook Aggregation Issue

I created a facebook timeline application with 4 actions and 2 Object types.
After that, i created an aggregation, to show my data in that timeline branded box (like Forsquare), that should display the sum of one action.
So for example i have scored 3 goals so far and one i score another one, it should display 4 goals (where the action is Score Goal and the object is Goal).
The problem is that the box is not appearing in my timeline although if i go to the activity tab, i can see that the action was made( Eg: User scored a goal).
Another issue i have is how can i display multiple aggregations (goals, shots) in the same timeline box (goal and shot are different objects)?
I'm using Facebook's JS Api.

Count total users on Facebook, grouped by country

How do I count total users in Facebook grouped by country, similar to http://www.checkfacebook.com/
Go to http://www.facebook.com/advertising/.
Click the button to create an ad.
Experiment with the 'Country' setting. Note that the "Estimated Reach" box will tell you how many people are in the currently selected countr(y/ies).
If you're clever, you could even script something to scrape this information automatically for you.