Is it ok to copy and paste and overwrite from google inspector tool

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I am currently working on a new woocommerce checkout page, and i have run in some trouble or sort of. I found the best way to rip from woocommerce was to look through the Code with inspector and simply copy and past it into my checkout file such as /woocommerce/checkout/checkout.php.

Is there any problem with that?

In the following code i could figur out to find the hooks and etc from woocommerce' payment, so i just ripped it via the inspector tool:::

 class="wc_payment_methods payment_methods methods">
     class="wc_payment_method payment_method_maria">
         id="payment_method_maria" type="radio" class="input-radio" name="payment_method" value="maria" checked="checked" data-order_button_text="">

         for="payment_method_maria">
            Pay with credit card  src="https://cdn.mariapayment.com/logo/checkout/combo/horiz/MARIA_checkout_kombo_horizontal_04.png" alt="MARIA - Payments made easy" style="max-width:145px">   
         class="payment_box payment_method_maria">
        
class="wc_payment_method payment_method_maria_mobilepay"> id="payment_method_maria_mobilepay" type="radio" class="input-radio" name="payment_method" value="maria_mobilepay" data-order_button_text=""> for="payment_method_maria_mobilepay"> MARIA MobilePay src="https://cdn.mariapayment.com/logo/checkout/single/horiz/MARIA_checkout_single_10.png" alt="MARIA - Payments made easy" style="max-width:98px"> class="payment_box payment_method_maria_mobilepay" style="display:none;">

That it is ok to do so.

profilepic.png
manpreet 2 years ago

As Marcel Roed already mentioned, this code is written in TypeScript and generated to HTML. You can copy it and use it like you want. To use it within WooCommerce, you need to modify the snippet anyway (add PHP and all the stuff you need).

But there is one thing I would be carful - the copyright. If this is a related to something you also do, it could be a problem (Just to remind).


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Important General Tech Links