cancel
Showing results for 
Search instead for 
Did you mean: 

Show differnt price for different customers causing issue with Fastly

Show differnt price for different customers causing issue with Fastly

Hi, I just want to show different price for different customers. But I don't want to make any block cachable false. The Issue is when a customer loads a category page then it cache generates and for all customers that cached pages shows. I fix that for normal magento FPC. But for the Fastly it is not working, Any Idea??

4 REPLIES 4

Re: Show differnt price for different customers causing issue with Fastly

@ankurkinex ,

if you want to show a different price for a different location than you can plan for a different URL like a subdomain like uk.website.com & us.websiite.com 

OR if you want to show customer pricing then you can remove the default pricing and customize the development with customer sections

if you don't want to update the URL than the best option to use is 
Customer Section.

this will not be cached into FPC and the checkout & cart are also not cached. 

so you can go ahead with Customer Sections for pricing. 

Re: Show differnt price for different customers causing issue with Fastly

Hi @amitsamsukha

I already tried with private content. But we apply this on category page. we can't pass the product id in getSectionData function. Right?

Re: Show differnt price for different customers causing issue with Fastly

@ankurkinex ,

you can set attribute value or class with product ID.

 

for private content, you can create a JS Variable or window array and pass the product IDs there from the list phtml file.

& a loop that will get the price from result/customer scetion & print the price with product ID as a class just created. 

 

 

Re: Show differnt price for different customers causing issue with Fastly

@amitsamsukhaCan you show some code regarding that. I couldn't get this.