This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Adding product codes again with Machform 4.2, still possible?


  1. MvdL79
    Member

    Hi Yuniar,

    Just wondering if it's still possible to add product codes to our forms, like we did in the past with previous Machform versions.
    This is the main reason for using Machform on our sites for ordering products.

    For example something like this:

    if($target_is_admin){
        			if($form_id == 10246 && $data['element_type'] == 'radio'){
        				switch ($data['value']) {
    						case 'Intel Xeon X3360 2.83 GHz Quad-Core met 4GB RAM en 160GB HDD<br>Deze server voor per maand': $data['value'] = 'Intel Xeon X3360 2.83 GHz Quad-Core met 4GB RAM en 160GB HDD<br>Deze server voor per maand [art.code: 1111111]';break;
    						case 'Intel Xeon X3330 2.66 GHz Quad-Core met 4GB RAM en 2x 160GB HDD RAID 1<br>Deze server voor per maand': $data['value'] = 'Intel Xeon X3330 2.66 GHz Quad-Core met 4GB RAM en 2x 160GB HDD RAID 1<br>Deze server voor per maand [art.code: 1111112]';break;
    						case '500GB Enterprise HDD in plaats van 160GB HDD<br> Meerprijs per maand': $data['value'] = '500GB Enterprise HDD in plaats van 160GB HDD<br> Meerprijs per maand [art.code: 3333335]';break;
    						case '120GB SSD in plaats van 160GB HDD<br>Meerprijs per maand': $data['value'] = '120GB SSD in plaats van 160GB HDD<br>Meerprijs per maand [art.code: 3333335]';break;
    						case '240GB SSD in plaats van 160GB HDD<br> Meerprijs per maand': $data['value'] = '240GB SSD in plaats van 160GB HDD<br> Meerprijs per maand [art.code: 3333337]';break;
    					}
        				$entry_details[$i]['value'] = $data['value'];
        			}
        		}

    These changes still can be made in the helper-functions.php, right?
    And is it still at the same line? #3034

    Just wanted to make sure before I start editing. :)

    Thank you in advance.

    Posted 10 years ago #

RSS feed for this topic

Reply