(Example: http://www.hejazoud.net/index.php?route ... uct_id=394)
I tried multiple extensions like this one (Ajax Live Options) but nothing work.
Is there any extension or code to fulfil this?
Does using a theme different from the default one affect this? If so, do I need to change anything?
OpenCart version: 2.2.0.0
It might depending on the theme. It's hard to tell what needs to be changed, as it might also interfere with other extensions. PM me if you need commercial assistance.
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
I had only one of the Mods working in one of my test designs a
while ago, but never was able to make it work again in other Layouts.
It's probably the script, wich somehow collides with other routines.
So I delayed this so easy looking function, until everthing else works
as planned. So, you're not alone...
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Code: Select all
<script type="text/javascript">
$( "select" )
.change(function() {
var str = "";
$( "select option:selected" ).each(function() {
str =str.substring(str.lastIndexOf("(")+1,str.lastIndexOf(")"));
str += " السعر:" + $( this ).text().split('(').pop().split(')').shift() + "ريال";
});
$( ".special-price" ).text( str );
})
.trigger( "change" );
</script>
I hope it helps other people who wants to achieve this result.
Code: Select all
str += " السعر:" + $( this ).text().split('(').pop().split(')').shift() + "ريال";
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
"Price" and "Riyal" in Arabic, but you can change them with any words or symbols.IP_CAM wrote: ↑Mon May 28, 2018 12:50 amwell, possibly after one finds out, what those two funny words mean ...Code: Select all
str += " السعر:" + $( this ).text().split('(').pop().split(')').shift() + "ريال";
Where does your jquery code go? I would really appreciate some guidance.
I had some experience with opencart many years ago and now I have come back to it after many years and it seems that sadly opencart is now dying as there is hardly any new support. All these issues have been there for about 10+ years and you would think that developers would have integrated them by now!
I would be grateful for any help in this matter.
https://www.opencart.com/index.php?rout ... n_id=26328
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
I also have a parallel default installation (just for testing) and it does not even work there (on basic default clean installation of 3.0.3.2)
Is there anything I am missing apart from doing the steps I have mentioned here.
The developer did not really bothered of using the same methodology as the one already used from the admin - > systems - > settings - > add / edit settings when switching theme thumbnails. It's the identical functionality that should of been used with this extension in order to make the calls.
In addition, discounts doesn't need to be recalled as the $this->cart object can already pull that in. A second parameter is required? Simply use the $this->cart object to pass it as the first argument or even straight into the custom method name. It's only common sense. There's no need for redundant codes.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Using md5 algorithm to handle cache is no longer the favored method. sha1 should, at least, be used.
options makeup in the controller should not be hard coded but rather be set in the target TWIG file.
Method names should not be used with underscores. Not that it would create problematic based on its functionality but using the same conventions as instanced variable names can be misleading as it may take longer to troubleshoot an issue. In addition, Opencart already uses that example when loading method names with the right convention names.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
showing in the controller does not provide a non-technical user on how to add TWIG codes into a controller which is another reason why the JS code should rather be added into a TWIG file as Opencart settings already demonstrates. Otherwise, a non-technical user might never notice those instructions even exist.// you can add smth useful here
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Please can you let someone else who has faced similar problem as me and fixed it answer my query. I appreciate your comments. Regards
You want an extension to be fixed? Contact the extension developer or submit a new service request in the Commercial Support section of the forum as per the forum rules.Scooteruk wrote: ↑Thu Jan 02, 2020 12:27 amAnd what is the point of you adding 3 replies here - apart from impressing everyone that you have infinite knowledge on this subject but not helping someone with less knowledge than you to debug and fix the problem?
Please can you let someone else who has faced similar problem as me and fixed it answer my query. I appreciate your comments. Regards
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 436 guests