Post by newbie87 » Fri Dec 08, 2023 12:43 pm

Found on our site, wondering what it is designed to do:
Thanks in advance for help.
****************************************

Code: Select all

<modification>

	<id>xx</id>
	<version>1.0.0.1</version>
	<vqmver>2.1.5</vqmver>
	<author>xx</author>	
	<file name="catalog/controller/common/header.php">
		<operation>
			<search position="before"><![CDATA[// Wishlist]]></search>
			<add><![CDATA[$data['welvisitor']='';]]></add>
		</operation>		
	</file>
	
	<file name="system/library/cart/cart.php">
		<operation>
			<search position="before" index="1,3"><![CDATA[$option_data[] = array(]]></search>
			<add><![CDATA[
			if (isset($productnewoption->row['sku'])) {
        		} else {
				$productnewoption->row['sku'] = '';
			}
				]]></add>
		</operation>		
	</file>
	
	<file name="admin/controller/catalog/product.php">
		<operation>
			<search position="before"><![CDATA[if ($option_value_info) {]]></search>
			<add><![CDATA[
			if (isset($option_value['opt_one'])) {
        		} else {
				$option_value['opt_one'] = '';
			}
			if (isset($option_value['opt_two'])) {
        		} else {
				$option_value['opt_two'] = '';
			}
			if (isset($option_value['opt_three'])) {
        		} else {
				$option_value['opt_three'] = '';
			}
			if (isset($option_value['opt_four'])) {
        		} else {
				$option_value['opt_four'] = '';
			}
			if (isset($option_value['opt_five'])) {
        		} else {
				$option_value['opt_five'] = '';
			}
			if (isset($option_value['opt_six'])) {
        		} else {
				$option_value['opt_six'] = '';
			}
				]]></add>
		</operation>
		
		<operation>
			<search position="before" index="1"><![CDATA[$product_option_value_data[] = array(]]></search>
			<add><![CDATA[
			if (isset($option_value['opt_one'])) {
        		} else {
				$option_value['opt_one'] = '';
			}
			if (isset($option_value['opt_two'])) {
        		} else {
				$option_value['opt_two'] = '';
			}
			if (isset($option_value['opt_three'])) {
        		} else {
				$option_value['opt_three'] = '';
			}
			if (isset($option_value['opt_four'])) {
        		} else {
				$option_value['opt_four'] = '';
			}
			if (isset($option_value['opt_five'])) {
        		} else {
				$option_value['opt_five'] = '';
			}
			if (isset($option_value['opt_six'])) {
        		} else {
				$option_value['opt_six'] = '';
			}
				]]></add>
		</operation>		
	</file>
	
	<file name="catalog/controller/checkout/success.php">
		<operation>
			<search position="before"><![CDATA[$this->db->query("UPDATE " . DB_PREFIX . "giftprodcart set order_id = '".$this->session->data['order_id']."' where cart_session = '" . $this->db->escape($this->session->data['giftprod']) . "' ");]]></search>
			<add><![CDATA[if (isset($this->session->data['giftprod'])) {]]></add>
		</operation>	
		
		<operation>
			<search position="before"><![CDATA[$this->cart->clear();]]></search>
			<add><![CDATA[}]]></add>
		</operation>	
	</file>
	
</modification>

Newbie

Posts

Joined
Thu May 28, 2015 5:14 am

Post by OSWorX » Fri Dec 08, 2023 5:05 pm

Simply checks some values and if not set/defined assign an emtpy value.
Finally add some data into your database.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 2 guests