Pincode check not working properly in my website

This topic has 20 replies, 2 voices, and was last updated 2 months, 3 weeks ago ago by Luca Rossi

  • Avatar: shopsangam
    nitin kumar
    Participant
    July 22, 2024 at 05:15

    Hi team,

    Earlier, I create a topic regarding the shop rocket pin code checker not displaying in my website.

    now it is displaying but it is not working properly . it is showing every pin code is not serviceable .

    I am sharing a screenshot for your kind reference.Also sharing a credentials so that you check it better at your end.

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    19 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    July 22, 2024 at 09:35

    Dear Shopsangam,

    We are pleased to inform you that the PINCODE check script is currently operational. For your reference, we have attached a screenshot demonstrating its functionality.

    Please be advised that any issues pertaining to third-party plugins should be directed to the respective plugin author. These issues are beyond the scope of our standard support services.

    Best Regards,
    The 8Theme Team

    Files is visible for topic creator and
    support staff only.
    Avatar: shopsangam
    nitin kumar
    Participant
    July 22, 2024 at 10:17

    Hi team,

    This is with reference to the your reply, The discussion with the third party already has been done, they are saying the there is no issue in their portal .
    it is working fine for all their client.

    If i am facing the issue , you have to discuss with your theme coder,

    so now tell me what i do now. if the shipping partner cant be integrated with the theme, how we shipped our product to customer.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 23, 2024 at 04:39

    Hi There,

    Upon checking your custom codes, we could see that it’s missing the weight of product in the POST URL.

    
    function checkPincode_Shiprocket_Manual() {
    			var pincode = document.getElementById("shiprocket_pincode_check").value;
    			if (pincode == '') {
    				jQuery('#pincode_response').text("This pincode field is required!")
    			} else {
    				var url = "https://apiv2.shiprocket.in/v1/external/woocommerce/courier/serviceability";
    
    				url += "?weight=" + "" + "&cod=1&delivery_postcode=" + pincode;
    
    				url += "&store_url=" + "https://shopsangam.com";
    
    				url += "&merchant_id=" + "4e4459354f4463314e513d3d";
    
    				url += "&unit=" + "g";
    
    				var token = 'ACCESS_TOKEN:' + 'source_wc_app_2022';
    
    				jQuery.ajax({
    					url: url,
    					headers: {'authorization': token},
    					success: function (response) {
    						if (response.status == 200) {
    							var recommeded_courier_id = response.data.recommended_courier_company_id;
    							var available_couriers = response.data.available_courier_companies;
    							var recommeded_courier = available_couriers.filter(c => c.courier_company_id == recommeded_courier_id);
    							if (recommeded_courier_id !== null && recommeded_courier_id !== '' && recommeded_courier_id !== undefined) {
    								var recommeded_courier = available_couriers.filter(c => c.courier_company_id == recommeded_courier_id);
    								var etd = recommeded_courier[0].etd;
    							} else {
    								var etd = available_couriers[0].etd;
    							}
    							var msg = <code><span>You&#039;ll get your product by <strong></code> + etd + <code></strong> !</span></code>;
    
    							jQuery('#pincode_response').html(msg);
    						} else {
    							jQuery('#pincode_response').text("This pincode is not serviceable!")
    						}
    					},
    					error: function (error) {
    						jQuery('#pincode_response').text("This pincode is not serviceable!")
    					}
    				});
    			}
    		}
    

    Please double check at the API Documents: https://apidocs.shiprocket.in/#29ff5116-0917-41ba-8c82-638412604916.

    If you require personal customization services, to change the current functionality, we invite you to submit a request through our customization panel at: https://www.8theme.com/account/#etheme_customization_panel , and continue conversations with the technicians team directly.
    Please be advised that customization services will incur additional charges, the exact amount of which will be communicated following a detailed review of your request.

    Best Regards,
    8Theme’s Team

    Avatar: shopsangam
    nitin kumar
    Participant
    July 23, 2024 at 07:22

    Hi team,

    I wanted to know that about the code you mentined in your reply,

    secondly i mentioned the size and weight as well in the products.

    Its working but my concern is the function of checking code by customers should be showing after buy now button .

    add to wish list and add to compare should be remains same as previous now they are showing below the buy now button.

    pls add either a section on page editor or match the check now button with cureent them color.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 23, 2024 at 08:35

    Dear @shopsangam,

    We hope this message finds you well. Could you please provide us with the details on how you integrated the PINCODE Check HTML codes into the single product page?

    Additionally, it appears that the login URL we have is no longer active. We kindly request that you generate a new one at your earliest convenience.

    Thank you for your attention to these matters.

    Best Regards,
    8Theme’s Team

    Avatar: shopsangam
    nitin kumar
    Participant
    July 23, 2024 at 08:41

    Pls find the required credentials.

    sharing a screenshot that is before the pin code inbuilt functionality on the one product page and i want the same page remains.

    just only want that pin code checking function should be visible after buy now button.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 23, 2024 at 09:55

    Hi @shopsangam,

    We would like to inform that we’ve updated the hooks from the plugin files to change the position of PinCode Check form.

    Please take a look at this file: wp-content/plugins/shiprocket/class-shiprocket-woocommerce-shipping.php line 278:

    
    add_action( 'woocommerce_after_add_to_cart_form', 'shiprocket_show_check_pincode', 30 );
    

    If you would like to change to another position, you can update the woocommerce_after_add_to_cart_form to any hooks of single product page: https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/

    If you require personal customization services, we invite you to submit a request through our customization panel at: https://www.8theme.com/account/#etheme_customization_panel , and continue conversations with the technicians team directly.
    Please be advised that customization services will incur additional charges, the exact amount of which will be communicated following a detailed review of your request.

    Best Regards,
    8Theme’s Team

    Avatar: shopsangam
    nitin kumar
    Participant
    July 23, 2024 at 15:02

    Thanks for sharing the information about hooks, its really help in future.

    1- pls check the link first sharing in pvt.area In which place for sales booster , add to compare, wish place changed.
    2- pls check second link in which everything on right place .so pls fixed it.

    pls note the both link are the same section category product.

    3. The link second are in perfect , the only things pls update a text before the checking pin code and color of button according to my theme colour.
    i am sharing a screenshot for your reference

    i could it self too but there is no option on theme where i can edit . also request to pls add a section in theme so the we can edit it self.

    once again thanks for fixing the place pf pin code function.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 24, 2024 at 07:36

    Hi @nitin kumar,

    1- pls check the link first sharing in pvt.area In which place for sales booster , add to compare, wish place changed.
    2- pls check second link in which everything on right place .so pls fixed it.

    Since you’ve used a Single Product Template Builder with Elementor for all the products, it means this template will apply to all your products. So please edit your products and change the Default Template instead of Theme(an example product we put in private content area): https://tinyurl.com/2yp79b2d.

    3. The link second are in perfect , the only things pls update a text before the checking pin code and color of button according to my theme colour.
    i am sharing a screenshot for your reference

    i could it self too but there is no option on theme where i can edit . also request to pls add a section in theme so the we can edit it self.

    This function is coming from 3rd party plugins, so if you want to edit the styles of pincode form, please ask the plugin’s author.

    Here is the 2 CSS selectors that you can take a look:

    
    input#shiprocket_pincode_check {
    }
    
    button#check_pincode {
    }
    

    https://stackoverflow.com/questions/15314407/how-to-add-button-inside-an-input

    Hope it helps!

    Please contact administrator
    for this information.
    Avatar: shopsangam
    nitin kumar
    Participant
    July 24, 2024 at 07:50

    its out of mind what you said and where i find post attribute option, plz change it at default if you can do it. rest share the guide how can i do this.

    secondly for ship rocket plugin they are saying that we don’t have issue in the plugin, such kind of things add only by your coder or theme you are using.

    i just want to add a text above the pin code checker area , that is done by you only

    Avatar: shopsangam
    nitin kumar
    Participant
    July 24, 2024 at 08:28

    hello sir ,

    I have a html code that can solve my issue but problem is i am not able to add container or html widget above the pin code checker.

    Kindly request to you pls give the flexibility to add my requirement between the buy now button and the pin code checker function.

    Avatar: Justin
    Luca Rossi
    Support staff
    July 24, 2024 at 08:56

    Dear Nitin Kumar,

    We hope this message finds you well. Regarding your inquiry, we kindly advise you to reach out directly to the plugin author for assistance with modifying the HTML container. Please note that any changes made directly to the plugin core files may be overwritten during updates.

    Thank you for your attention to this matter.

    Best Regards,
    8Theme’s Team

    Avatar: shopsangam
    nitin kumar
    Participant
    July 24, 2024 at 10:44

    why you are shifting me to ship rocket plugin.

    I will handle my requirement of text .

    you just do one things gives me to flexibility that i can add a container after the buy now button in your theme.

    In theme editor when i try to put a container after the buy now button .it could not add.

    sharing a link for your reference .. the necessary html code implemented but couldn’t add after the buy now button.

    pls do one favour only change the color of check pin code button as #00796a

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 24, 2024 at 11:25

    Hi @nitin kumar,

    Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    button#check_pincode {
        background-color: #00796a;
        border: none;
        width: 100%;
        padding: 10px 25px;
        color: #FFF;
        border-radius: 10px;
        margin-top: 10px;
        font-weight: bold;
    }
    
    .etheme-sticky-cart div.pos-static > div:nth-child(4) {
        display: none !important;
    }
    

    Hope it helps!

    Avatar: shopsangam
    nitin kumar
    Participant
    July 24, 2024 at 13:15

    after adding the given code … button format as expected as we want

    but the add to wish and compare text space change

    and buy now button remove after adding this code ….pls check attached screenshot

    Files is visible for topic creator and
    support staff only.
    Avatar: shopsangam
    nitin kumar
    Participant
    July 24, 2024 at 16:59

    html code that i need to show above pin code check …
    unable to add this to above kindly help

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    July 25, 2024 at 18:00

    Hi @nitin kumar,

    after adding the given code … button format as expected as we want

    but the add to wish and compare text space change

    and buy now button remove after adding this code ….pls check attached screenshot

    Our custom CSS codes are not related to what you mentioned above. If you’re not satisfied with this, please remove it to see if the wishlist/compare back to normal.

    html code that i need to show above pin code check …
    unable to add this to above kindly help

    We could see that you’ve already added the HTML codes successfully. Please confirm: https://tinyurl.com/2yvvbu6m.

    Best Regards,
    8Theme’s Team

    Avatar: shopsangam
    nitin kumar
    Participant
    July 26, 2024 at 12:21

    Our custom CSS codes are NOT related to what you mentioned above. If you’re not satisfied with this, please remove.

    it is the right way to treat your customer ?

    instead of asking what problem in this code you gys saying remove it and further no guidance or help are provided by your reply. this is your arrogant behavior.

    if the solution of problem creating a next problem or effecting the others function .. what you are expecting that customer sit silent nothing say about it….

    you gys taking the question and problem on your ego that’s why you are talking like this with your customers.

    instead of commenting like this , you can say this directly to customer that you don’t want to help them and they buy your customization service if they are facing problem.

    Avatar: Justin
    Luca Rossi
    Support staff
    July 27, 2024 at 19:06

    Dear Mr. Nitin Kumar,

    We would like to clarify that your recent inquiries regarding support for third-party plugins fall outside the scope of our standard support services. We have previously provided several guides and even modified the code for the ShipRocket plugin to assist you. However, please understand that any further issues related to third-party plugins should be directed to the respective plugin’s author for more specialized assistance.

    Thank you for your understanding.

    Best regards,
    The 8Theme Team

  • Viewing 20 results - 1 through 20 (of 20 total)

The issue related to '‘pincode check not working properly in my website’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.