Access to
free advice

We help you to solve your doubts.

We have a claim form (worked with Elementor) and we want each claim received to have a unique code.


We will work with a correlative code such as R001, R002.

  1. Copy this code into the WordPress function.php file.
  2. In order to identify the form:
    1. Add the ID“form_name” to the form.
    2. Add the name “Claim Book” to the form.
  3. We must modify the prefix of our database. In this case we use “CJf2B6_” but usually you have something like “wp_”.
  4. Also in the same line we must modify the name of the database table that hosts our claims. In this case we are using the elementor submission so we use “_e_submissions” and “_e_submissions_values”.
  5. If you want to render the Claim code generated in any field of the Form, you must add the Field and give it the ID “reclamos_id”.
				
					// Libro de Reclamaciones - Código único secuencial

add_action( 'elementor_pro/forms/validation', 'project_libro_reclamaciones_codigo_unico', 10, 2 );


function project_libro_reclamaciones_codigo_unico( $record, $handler ) {
    global $wpdb;
    
    // Verificar que se envíe desde el formulario del libro de reclamaciones.
    $form_name = $record->get_form_settings( 'form_name' ); 
    if($form_name != 'Libro de reclamaciones'){
        return;
    }
    
    // Buscamos el último lead enviado
    $fv_form = $wpdb->get_results("SELECT id FROM CJf2B6_e_submissions WHERE element_id = 'acdb477' ORDER BY id DESC LIMIT 1");
    
    // Tomamos el código
    $fv_val  = $wpdb->get_results("SELECT value FROM CJf2B6_e_submissions_values WHERE submission_id = ". $fv_form[0]->id ." AND `key` = 'reclamos_id'");
    
    // Si es el primer lead, se crear el primer código de la secuencia, sino, sumamos uno
    if($fv_val){
        $fv_id = (int)preg_replace('/[^0-9]/', '',$fv_val[0]->value);
        
        $reclamo_num = $fv_id + 1;
    }else{
        $reclamo_num = 1;
    }
        
    // Agregamos el código con el id aumentado, el LR puede variar según tu necesidad
    $reclamo_id = 'LR-'.sprintf("%04d", $reclamo_num);
    
    // Actualizamos el input hidden donde renderizamos el id del reclamo generado
    $record->update_field('reclamos_id', 'value', $reclamo_id);
    $record->update_field('reclamos_id', 'raw_value', $reclamo_id);
}

				
			

Do you want to reverse your purchase?

1. General

Our Return Policy sets out the terms and conditions under which we offer refunds or exchanges for virtual products purchased on our website. By making a purchase, you agree to this policy in its entirety.

2. Eligibility for Returns

  1. Request Period: Return requests must be made within 5 days of purchase.
  2. Return Conditions: No refunds will be issued once the virtual product has been published to a production domain or if the pre-design has been approved by the client.
  3. Error Payments: In the event of a payment being made in error, refunds will only be permitted if no more than 2 business days have passed. If more days have passed, 5% of the amount will be retained as compensation for commission expenses.

3. Refund Process

  1. Request: To initiate a return, contact our customer service team at [email/contact] with the order number and a detailed description of the issue.
  2. Request Review: We will review your request and notify you of the status of the return within 10 business days.
  3. Refund Time: The refund process will take a minimum of 10 business days. The total refund time will also depend on the processing times of each banking institution.

4. Exceptions and Refunds

  1. Exceptions: In cases of technical defects or errors attributable to us, which prevent the proper functioning of the product, a correction or replacement will be considered, instead of a return.
  2. Refunds: Refunds will not be issued once the product has been published on a production domain or if the design has been previously approved. For payments in error, a 5% retention will be applied if more than 2 business days have passed.

5. Exchanges

Instead of a refund, you may choose to request modifications or adjustments, subject to evaluation and mutual agreement.

6. Contact

For any questions or concerns about our returns policy, please contact our customer service team at ventas@graphica.pe.

Note: We reserve the right to update this policy at any time, and any changes will be effective immediately upon posting on this page.

Pay safely with izipay

Secure payments with the izipay platform.

The izipay Terms and Conditions apply.

 

Your privacy is our priority

By purchasing products here, you agree to our Terms and Conditions.