This is regarding currency conversion.
We have a website using Codeigniter on which we are using Opencart as a subset system for cart and checkout etc. So just like Opencart has a dropdown in the header to change currency rates.
We need to implement a dropdown in the header in Codeigniter (PHP Framework) so that it changes the currency in Opencart as well. By the way header is common b/w both Codeigniter and Opencart systems. Header resides under Codeigniter.
I have tried posting 'code' and 'redirect' variables to the currency function under controller in Opencart using Javascript and cURL. Basically trying to mimic Opencart dropdown functionality.
I have also tried setting the session variable: $_SESSION['default']['currency'] = 'EUR'; (for example)
Both ways do not work!
Is there a way we can change the currency from outside of Opencart? Please let me know.
Thanks
in file "system/library/currency.php" find
$this->set($this->config->get('config_currency'));
there you can set currency $this->config->get('config_currency') change to your variable
And in "catalog/controller/startup/startup.php" you can add currency for your session..
$this->session->data['currency'] = 'EUR';
Related
I have made a custom bar in header section in opencart 2.1.0.1. Shown in the figure Header custom bar.
Where I want to give a link to view compared products.
I know that "$compare" is the variable to get the path. I wanted to access "$compare" but it is giving the following error
"Undefined variable compare in ..../header.tpl in line 68"
How to give the link dynamically for compare products ?
Suggestion and Solutions are appreciated.
Thank you.
Hi for this you need to modify header controller as well
$data['compare'] = $this->url->link('product/compare');
Put this line to your header controller than $compare will work on header.tpl
I'm using Laravel 4 pagination, and want to remove the page=1 and serve the default string instead; for example:
http://domain.com/search-results/
instead of
http://domain.com/search-results/?page=1
Of course, for page >=2, it's just fine to leave:
http://domain.com/search-results/?page=2
Currently Laravel will always default to showing ?page=1.
Accomplishing what you want (always defaulting to not showing ?page=1) involves a mix of extending/using your own Presenter and/or also by using a custom Pagination view.
Stock pagination views are here, but you can create your own and define it within the view.php config.
In my blog, I do similar. My pagination view is here. You can see it loads in a custom Presenter class.
Note that my blog may not be up to date with latest Laravel code, but that should get you on your way to making the edits you need to do to accomplish that.
You may be able to skip code altogether and use a server configuration to redirect - That link assumes Apache.
I am attempting to incorporate search functionality for a WordPress website that contains a multitude of posts. Each post title is a random number, but I have manually inputted the titles into the SEO Title field using the Yoast WordPress SEO plugin. The posts themselves have no other identifying material (e.g., tags or content). When integrating the search bar, I noticed that I was not receiving any results as the search is utilizing the original random number title and not the SEO Title. I’ve explored a few of the custom search plugins, but none of them permitted me to add the SEO Title field within the search criteria. Any suggestions on how I can alter the search function to focus on the SEO Titles and not the original title?
Try using Relevanssi.
The Yoast SEO title is stored as a custom field on the post. You should be able to configure Relevanssi to search that field. The nice thing here is that this will modify WP's built-in search so you won't have to make any changes to the theme.
I'm trying to change magento url's for the store switcher. Currently in Magento when you have multi store views for a different country code it shows like: myurl.com/?_store=french&_from_store=default
Does anyone know if it's possible to change it so that it shows myurl.com/fr. This would need doing for all different language types using the country code.
Thanks for any help you can offer.
M
here you can find your solution to manage like as above you want
http://magento-rohan.blogspot.in/2012/10/magento-managing-multiple-website-stores.html
you will do this easily using above link also for video
www.magentocommerce.com/magento-on-the-fly/multiple-sites/
hope this will sure help you.
You're one configuration setting away. Just go into System > Configuration > Web > URL Options and set 'Add Store Code to URLs' to 'Yes'.
How to make unique permalinks even if the post included in multiple category ?
Custom Structure /%category%/%postname%
multiple permalinks for same article effecting the facebook like count
presently seems to be like this, how can make this only for one ?
You can use help from "SEO plugins", just search on the wordpress plugins.
recently I'm using Yoast SEO plugin, http://wordpress.org/extend/plugins/wordpress-seo/
to customize the permalink with categories.