Explore all the pages we have on our website. Find information about our services, company, and more.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960 with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.' . esc_html__('Your demo import has been completed successfully.', 'auto-parts-garage') . '
'; echo '' . esc_html__('VIEW SITE', 'auto-parts-garage') . ''; //end // Top Bar // set_theme_mod( 'auto_parts_garage_topbar_text', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.' ); // header // set_theme_mod( 'auto_parts_garage_phone_text', 'Phone' ); set_theme_mod( 'auto_parts_garage_phone_number', '+123 456 7890'); set_theme_mod( 'auto_parts_garage_cart_icon', 'fas fa-shopping-cart'); // slider section start // set_theme_mod( 'auto_parts_garage_slider_button_text', 'Read More' ); set_theme_mod( 'auto_parts_garage_slider_small_title', 'Emergency: ' ); set_theme_mod( 'auto_parts_garage_topbar_btn_link', '#' ); for($auto_parts_garage_i=1;$auto_parts_garage_i<=4;$auto_parts_garage_i++){ $auto_parts_garage_slider_title = 'Custom rims Best Performance'; $auto_parts_garage_slider_content = 'Credibly reintermediate backend ideas for cross platform models'; // Create post object $my_post = array( 'post_title' => wp_strip_all_tags( $auto_parts_garage_slider_title ), 'post_content' => $auto_parts_garage_slider_content, 'post_status' => 'publish', 'post_type' => 'page', ); // Insert the post into the database $auto_parts_garage_post_id = wp_insert_post( $my_post ); if ($auto_parts_garage_post_id) { // Set the theme mod for the slider page set_theme_mod('auto_parts_garage_slider_page' . $auto_parts_garage_i, $auto_parts_garage_post_id); $auto_parts_garage_image_url = get_template_directory_uri().'/assets/images/slider'.$auto_parts_garage_i.'.png'; $auto_parts_garage_image_id = media_sideload_image($auto_parts_garage_image_url, $auto_parts_garage_post_id, null, 'id'); if (!is_wp_error($auto_parts_garage_image_id)) { // Set the downloaded image as the post's featured image set_post_thumbnail($auto_parts_garage_post_id, $auto_parts_garage_image_id); } } } set_theme_mod( 'auto_parts_garage_service_banner_player_image', get_template_directory_uri().'/assets/images/slider.png' ); set_theme_mod( 'auto_parts_garage_whether_image', get_template_directory_uri().'/assets/images/cloud-sun-solid.png' ); set_theme_mod( 'auto_parts_garage_banner_small_title', 'Manage Your Smart Home' ); set_theme_mod( 'auto_parts_garage_slider_tagline_title', 'Home Automation Revolutionized With The Of AI.' ); set_theme_mod( 'auto_parts_garage_slider_text', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.' ); set_theme_mod( 'auto_parts_garage_slider_button_text', 'Shop Now' ); set_theme_mod( 'auto_parts_garage_top_button_url', '#' ); set_theme_mod( 'auto_parts_garage_whether_text', '20' ); // Best Seller Section // set_theme_mod( 'auto_parts_garage_product_title', 'Sale Products' ); set_theme_mod('auto_parts_garage_bestseller_product_page', 'productcategory1'); set_theme_mod('auto_parts_garage_to_rated_product_page', 'productcategory3'); set_theme_mod('auto_parts_garage_product_sale_discount_text', '30% OFF'); set_theme_mod('auto_parts_garage_product_btn_text', 'VIEW DETAILS'); set_theme_mod('auto_parts_garage_product_btn_link', '#'); set_theme_mod('auto_parts_garage_top_rated_pro_title', 'Top Rated Products'); set_theme_mod('auto_parts_garage_discount_sale_img', get_template_directory_uri().'/assets/images/offer.png'); // Define product category names and product titles $auto_parts_garage_category_names = array('productcategory1', 'productcategory2', 'productcategory3', 'productcategory4'); $auto_parts_garage_title_array = array( array("Product Title 1", "Product Title 2"), array("Product Title 1", "Product Title 2"), array("Product Title 1", "Product Title 2"), array("Product Title 1", "Product Title 2") ); foreach ($auto_parts_garage_category_names as $auto_parts_garage_index => $auto_parts_garage_category_name) { // Create or retrieve the product category term ID $auto_parts_garage_term = term_exists($auto_parts_garage_category_name, 'product_cat'); if ($auto_parts_garage_term === 0 || $auto_parts_garage_term === null) { // If the term does not exist, create it $auto_parts_garage_term = wp_insert_term($auto_parts_garage_category_name, 'product_cat'); } if (is_wp_error($auto_parts_garage_term)) { error_log('Error creating category: ' . $auto_parts_garage_term->get_error_message()); continue; // Skip to the next iteration if category creation fails } // Loop to create 4 products for each category for ($auto_parts_garage_i = 0; $auto_parts_garage_i < 2; $auto_parts_garage_i++) { // Create product content $auto_parts_garage_title = $auto_parts_garage_title_array[$auto_parts_garage_index][$auto_parts_garage_i]; $auto_parts_garage_content = 'Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s.'; // Create product post object $auto_parts_garage_my_post = array( 'post_title' => wp_strip_all_tags($auto_parts_garage_title), 'post_content' => $auto_parts_garage_content, 'post_status' => 'publish', 'post_type' => 'product', // Post type set to 'product' ); // Insert the product into the database $auto_parts_garage_post_id = wp_insert_post($auto_parts_garage_my_post); if (is_wp_error($auto_parts_garage_post_id)) { error_log('Error creating product: ' . $auto_parts_garage_post_id->get_error_message()); continue; // Skip to the next product if creation fails } // Assign the category to the product wp_set_object_terms($auto_parts_garage_post_id, (int)$auto_parts_garage_term['term_id'], 'product_cat'); // Add product meta (price, etc.) update_post_meta($auto_parts_garage_post_id, '_regular_price', '50'); // Regular price update_post_meta($auto_parts_garage_post_id, '_sale_price', '49.99'); // Sale price update_post_meta($auto_parts_garage_post_id, '_price', '49.99'); // Active price // Handle the featured image using media_sideload_image $auto_parts_garage_image_url = get_template_directory_uri() . '/assets/images/product' . ($auto_parts_garage_i + 1) . '.png'; $auto_parts_garage_image_id = media_sideload_image($auto_parts_garage_image_url, $auto_parts_garage_post_id, null, 'id'); if (is_wp_error($auto_parts_garage_image_id)) { error_log('Error downloading image: ' . $auto_parts_garage_image_id->get_error_message()); continue; // Skip to the next product if image download fails } // Assign featured image to product set_post_thumbnail($auto_parts_garage_post_id, $auto_parts_garage_image_id); } } // Offer Section// set_theme_mod( 'auto_parts_garage_offer_small_text', 'Offers' ); set_theme_mod( 'auto_parts_garage_offer_heading', 'Exclusive Deals on Home Automation Systems' ); set_theme_mod( 'auto_parts_garage_offer_title', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.' ); set_theme_mod( 'auto_parts_garage_product_clock_timer_end', 'November 3 2024 11:00:00' ); set_theme_mod( 'auto_parts_garage_shop_button_text', 'Shop Now' ); set_theme_mod( 'auto_parts_garage_shop_btn_link', '#' ); set_theme_mod( 'auto_parts_garage_shop_count', '100' ); set_theme_mod( 'auto_parts_garage_per_count', '%' ); set_theme_mod( 'auto_parts_garage_off_count', 'Off' ); set_theme_mod( 'auto_parts_garage_offer_image', get_template_directory_uri().'/assets/images/seller-img.png' ); set_theme_mod( 'auto_parts_garage_offer_small_text1', 'Offers' ); set_theme_mod( 'auto_parts_garage_offer_heading1', 'Exclusive Deals on Home Automation Systems' ); set_theme_mod( 'auto_parts_garage_offer_title1', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.' ); set_theme_mod( 'auto_parts_garage_shop_button_text1', 'Shop Now' ); set_theme_mod( 'auto_parts_garage_shop_btn_link1', '#' ); set_theme_mod( 'auto_parts_garage_offer_image1', get_template_directory_uri().'/assets/images/camera.png' ); //Copyright Text set_theme_mod( 'auto_parts_garage_footer_text', 'By VWThemes' ); } ?>