Product reference fieldtype inside content type not allowed to add new product

appetals's picture
appetals
Tue, 02/16/2016 - 05:21
#1
Product reference fieldtype inside content type not allowed to add new product

Hi ,

i am creating a new content type with product reference fieldtype.

Image title

but at the time of adding content its only allows to add existing project and not allow to add new

Image title

phuonght's picture
phuonght
Tue, 02/16/2016 - 05:57

Hi,

Check site please.

appetals's picture
appetals
Tue, 02/16/2016 - 07:37

Ok , i want to add product same as product listing and detail page given in the theme.

i have created a product type as 'product jewels category'

and also created a new content type as 'product listing' and added data on it.

in already existing ecommerce view : page view is empty

so how can i create the listing and detail page?

phuonght's picture
phuonght
Tue, 02/16/2016 - 22:07

Please go to sites\all\themes\md_make\templates\node and create a file named node--product-listing.tpl.php that will display node of content type. You also could take a look at other nodes in that folder for example, such as node shop product. 

And if you would like to list your nodes please use view. Tutorial below:

https://www.youtube.com/watch?v=3L9JLZOb_LQ

phuonght's picture
phuonght
Thu, 02/18/2016 - 00:06

We just checked and could see as below:

Image title

File node--product-listing.tpl.php seems to work normally. Maybe there are some problem from your code in file. Please check code carefully.

And we think that you need correct file /sites/all/themes/md_make_subtheme/templates/product/page--node--type--product-listing.tpl.php. 

phuonght's picture
phuonght
Thu, 02/18/2016 - 02:46

Sorry,

After checking again, we highly recommend that you should use default content type "Shop product", it has all things as you could see from our demo ("multiple images for product" at last comment also). Example: /ecommerce-products-list, /node/36

If you reproduce the shop category-product feature for your own content type, please develop it by yourself. We do not support this case base on our support policy. 

phuonght's picture
phuonght
Thu, 02/18/2016 - 03:23

You can add multi images for one product in content product normally

Image title

appetals's picture
appetals
Fri, 02/19/2016 - 06:33

Ok,

i have followed your instructions and  used shop product for the content. but for editing the file i am traying to copy 

md_make/templates/node/product/node--shop-product.tpl.php inside the subtheme folder which is not working.

phuonght's picture
phuonght
Mon, 02/22/2016 - 04:11

Please remember to clear cache after changes.

Your product list page: /ecommerce-products-list and  you can edit url at view: /admin/structure/views/view/ecommerce/edit

appetals's picture
appetals
Wed, 03/16/2016 - 00:10

Hi,

On click of product detail page, url parameter changes as per the taxonomy selected.

what if we need to chnage that taxonomony field name i.e instead of 'field_new_collection' we need some differnt name

i am not able to change the machine name of that field inside content type shop_product

if we are adding new taxonomy and new field with different name then that will not filter with url parameter .

Please help in this 

phuonght's picture
phuonght
Wed, 03/16/2016 - 06:25

If you create a new taxonomy and filter for that taxonomy then please go to admin/config/search/search_api/index/md_index/fields and admin/config/search/search_api/index/md_index/facets and insert the new taxonomy. 

Next step, please go to admin/config/search/search_api/index/md_index and re-index then you will have block filter for taxonomy and can use it in any page.

appetals's picture
appetals
Wed, 03/16/2016 - 07:41

Hi ,

Thanks for your help, it works well 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.