ylechasseur wrote:Hi Guys,
I have a small problem with the product insertion. I did an interface to manage the products imported. In this interface, I add product specification, product pictures, text.... When I am saving, the pictures is added, mapped to the product_picture mapping, move to the FTP site and so on. When I look at the product on the web site, it is there, but when I click on it.. nothing happen. When I use the Quick Look, then no problem but then from this window, if I click on Go to Product Description, again nothing happen. I realized that I had to update the URLRecord table with the required information, but then, If I do it manually to test, I have an Error. If I open the product from the admin console and save it, then I found the entree into the able URLRecord in double and often with the same information as I did prior. I probably missing an insert in an other table, but I didn't find where.
Any idea what I could missed ?
Also, the Motion theme is great and very easy to work with as is.. very happy with my purchase...as usual with you guys.
Have a nice day
Yves
www.liveforsailing.com
Hi Yves,
You are on the right tracks about this.
After you insert your product you need to mimic the behavior of inserting into the UrlRecord table. I would suggest you to see what the
Create method of the ProductController ( admin controller ) do and try to do it with your script. Before inserting into the UrlRecord table there is a method that validates the SeName of the product (check
ValidateSeName method).
This means for example, if the product name is "just a new product" the generated SeName should be "just-a-new-product" and this is the SeName you need to insert into the table as a slug.
Hope this helps!