Hello,
trying to implement tracking code for google Customer Reviews.
As you can see in Googles spec here:
https://support.google.com/merchants/answer/7106244?hl=en
There is a "estimated_delivery_date" needed.
Could you please add a new token for deliverydate ?
I suggest calculating the value of that new token by orderData + deliveryTimeInDays
deliveryTimeInDays should so be a new inputfield in CodeManager.
When can that be fixed ?
Regards
Jens
Hello,
I solved this by adding this in GetPictureUrl(..)
var strcall = GetCallingMethod("GetPictureUrl");
String specialFThumbFileParameter = null;
if (strcall == "FoxNetSoft.Plugin.Feed.Manager.Services.FeedPictureService.GetFeedPictureUrl")
specialFThumbFileParameter = "Feed";
So I can call an overridden adjusted GetPictureUrl(..) with following additional code to generete specific thumbs marked as i.e. "canvas-resised":
if(!String.IsNullOrEmpty(specialThumbFilenameParameter))
thumbFileName = !String.IsNullOrEmpty(seoFileName)
? string.Format("{0}_{1}_{2}_{4}.{3}", picture.Id.ToString("0000000"), seoFileName, targetSize, lastPart, specialThumbFilenameParameter)
: string.Format("{0}_{1}_{3}.{2}", picture.Id.ToString("0000000"), targetSize, lastPart, specialThumbFilenameParameter);
To actually resize canvas, some lines below, I adjusted Nop-code like that:
using (var destStream = new MemoryStream())
{
var newSize = CalculateDimensions(b.Size, targetSize);
if (!String.IsNullOrEmpty(specialThumbFilenameParameter)) // checking if pic is for google feed, then resize canvas for width = height
if (newSize.Height < targetSize)
newSize.Height = targetSize;
else if (newSize.Width < targetSize)
newSize.Width = targetSize;
ImageBuilder.Current.Build(b, destStream, new ResizeSettings
{
Width = newSize.Width,
Height = newSize.Height,
Scale = ScaleMode.Both,
Quality = _mediaSettings.DefaultImageQuality
});
pictureBinaryResized = destStream.ToArray();
b.Dispose();
}
Thats works for me..BUT would be more efficient to be able to drop "GetCallerMethod(..)" to know when to get/use canvas-changed thumbs or not.. Best way was , I guess, to implement special-Thumb-generation in directly in Feedmanager by an option. But this is of course your choice :-) Dont know for sure, but there has to be others facing same challenge with google-Pics minimum size of BOTH x and y to 100px.
Hello,
I have some troubles with pictures in Google Products. I have many product pictures of i.e. screw in a format like 600x50
Unfortunately Google demands a minimum size of 100x100 causing in disapproving many of my products.
Is there a posibility to implement a function in Google Feed manager to create new "google-product-picture-thumbs" with increases canvas (white or transperent background) for Productpictures having a side below minimum?
Thanks in advance.
Jens
Hello again,
that worked fine ! Thanks for amazing and very quick support !
Looking forward to updated kelkoo-feed.
I tested now with setting "use external picture service". It still does not jump into Nop.Services.Media.PictureService.GetPicturesByProductId(..)
Where does the feedManager gets the is the picture-object from database to generate picktureURL ?
I think it is that link you are looking for ?
https://www.kelkoogroup.com/kelkoo-customer-service/support-for-merchants/shopping-guides/product-data-feed/
Thank you for quick answer.
I have another problem, that at least occurred on the google feed (but I assume it is the same for all feeds)
I implemented some pictograms:
For this I used ProductPicture-table as well and just changed this method in Nop.Services.Media.PictureService like that:
public virtual IList<Picture> GetPicturesByProductId(int productId, int recordsToReturn = 0)
{
if (productId == 0)
return new List<Picture>();
var query = from p in _pictureRepository.Table
join pp in _productPictureRepository.Table on p.Id equals pp.PictureId
orderby pp.DisplayOrder
where pp.ProductId == productId &&
(pp.IsPictogram == null || pp.IsPictogram == false) //new by Festemidler
select p;
if (recordsToReturn > 0)
query = query.Take(recordsToReturn);
var pics = query.ToList();
return pics;
}
Hello,
Just bought your amazing feedmanager and installed it.
Using Kelkoo-feed did unfortunately not work as expected. I got successfully generated this feed:
BUT on kelkoo website I only could choose between “Google (XML” and “ShoppingFeeder”. Both did not accepte/parse this generated feed. I generate a second “Google”-Feed named kelkoo in the feedmanager and this one could be parsed by Kelkoo ?
Why a special kellkoo-feed in Feedmanager ?