Jump to content

 

natewallis

Member Since 11 Jan 2013
Offline Last Active Jan 16 2020 10:16 PM
-----

#318163 Vue.js Server Side Render Theme

Posted by natewallis on 26 July 2019 - 12:40 AM

Hi, 

 

Would just like to share my experiences with you and let you know what I have managed to get a vue.js server side rendered theme up and running with CS-CART.   I haven't fully tested everything yet, but early indications are good.

 

I went with SSR to tackle any doubt around SEO that exists with client side rendering and so far I am happy with the results. 

 

We have 2 vue components on our page that contain session cart data, so hopefully I can cache everything on my pages with varnish except for these 2 components (using ESI) and of course we will not cache the checkout.   

 

Of course my theme is heavily domain specific to our business, but that is one of the reasons we went the route of writing our own theme, we have greatly simplified the smarty templates for our site and replaced them with something that can be managed with webpack.   It makes updates to the theme very quick.   All of the content for our theme is controlled by a single addon that only executes for allowed storefronts - this way our manipulation of data does not corrupt any other storefronts we may run with a different theme. 

 

We had to manipulate data to some degree to always deal with JSON responses to the front end, and we managed to do all of this using the existing cscart code hooks. 

 

Fingers crossed for successful deployment!

 

 

 




#313760 Not Inherit Responsive Theme

Posted by natewallis on 28 March 2019 - 08:16 PM

For now, I just created an empty scripts.post.tpl file in add-ons/PayPal in my theme .. I have written completely new theme using vue.js which has been interesting, but working quite well...


#301407 Theme Parent Relationship

Posted by natewallis on 10 May 2018 - 06:34 AM

Please check the following article

 

https://docs.cs-cart...ent_themes.html

 

Thanks for that - I should have checked the docs... Let that be a lesson for all ;)




#281121 Vivashop - Your Ultimate Responsive Cs-Cart Theme

Posted by natewallis on 19 July 2017 - 02:47 AM

Ok, thanks for getting back to me. 




#276396 Request For Either Zippay Or Afterpay Addon

Posted by natewallis on 03 May 2017 - 01:31 AM

Interesting.  

 

I spoke to them on the phone yesterday and they said they are currently not offering their API for custom development. 

 

They mentioned that later in the year (around November) they would have something setup. 

 

FYI, I was also advised by afterpay (even though the majority of our products are under $1000 AUD) that their average sale amount is around $150.00 and the closer that the transaction amount go to their 1K threshold, the higher the decline rate was. 

 

So even if they did have an API, I would have second thoughts as you would be at the mercy of their approval algorithm and being declined easily might have an effect on conversion rate on the checkout.  

 

Just my initial thoughts, but they may change based on your experiences.

 

 

BTW... Where have you seen documentation in regards to integration.. 




#260154 Cscart 4.4.1

Posted by natewallis on 27 September 2016 - 06:59 AM

Hi. 

 

Anyone have any more information as to when 4.4.1 would be released?  Best I could find was "this fall", but that could be anytime in the next 3 months... Was looking for a smaller date range :)

 

Cheers.. 




#239812 Redis Cache

Posted by natewallis on 11 January 2016 - 06:47 AM

Hi there, 
 
I have been using Redis for the CS-CART cache and all is going well.  However there appears to one issue that pops up every now and then and I am having a bit of difficulty solving the issue as I am not a redis expert. 
 
I have temporarily switched the caching back to 'file' cache.  
 
During one debug session, I was able to determine the cause of the issue.   The issue is the PHP script goes for over 1 minute while strpos() is called repeatedly.  Extending the max_execution_time does not solve the issue, it just takes longer for the page to crash.  
 
I have attached a screenshot of the cachegrind debug session in case that helps anyone.  It shows the functions that are called for strpos to be triggered.  
 
Anyone else experienced this issue?  This issue takes a while to appear if I flush the redis cache, but gradually creeps back in over time. 
 
Cheers, 
Nathan

Attached Files