Post by sozinho » Mon Mar 13, 2023 3:20 am

Hello,
I want to do something in Opencart 3x version, but I'm making a mistake in a code, when I select the options, I make a text, I want to write the text that there is stock or no stock when the option clicks on the basket part, but I was not successful.

var ilkinisectimdeger = '736';

When I type a number higher than 1 in this section, it is stated that it is in stock. But the product that is not in stock is written in the same way. Can anyone help with this issue?

Code: Select all

<script type="5a9d62e52dca9aac8083b067-text/javascript">
	var eleman = '';
	var ilkinisectimdeger = '736'; 
			if ( ilkinisectimdeger > 0) {
		document.getElementById('teslim').innerHTML = "Şimdi Satın Alırsanız<b> Yarın </b>Kargoda!";
	$("#sepeteekle").show();
	$("#gelincehaber").hide();	
			}
	if ( ilkinisectimdeger == 0) {
			if ( eleman ) {
		document.getElementById('teslim').innerHTML = 'Tükendi! Sadece Personel Seçebilir!';
			}else {
		$("#sepeteekle").hide();

	$("#gelincehaber").show();
	document.getElementById('teslim').innerHTML = 'Seçili Beden Stokları Tükenmiştir!';
			}
			}
	if ( ilkinisectimdeger == 'bos')			{
		document.getElementById('teslim').innerHTML = 'Şimdi Satın Alırsanız<b> 4-9 İşgünü </b>Kargoda!';
			}
</script>

Newbie

Posts

Joined
Fri Mar 31, 2017 10:18 pm

Post by straightlight » Thu Apr 20, 2023 8:01 am

You can always create a new service request in the Commercial Support section of the forum to have this feature integrated as a custom job.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 90 guests