hyper_pixel
Forum Replies Created
-
a ta entao resolvel, muito obrigado.
o PAC veio
desabilitei essa opcao:
Declarar valor para seguro
Ativar valor declaradoMas tem outros metodos que ainda nao aparece, veio sedex, agora o PAC e retirar no local, falta alguma configuracao?
SEDEX 10 Pacote
SEDEX 12
e-SEDEXvoltando ao problema original, por que so vem sedex e retirar no local?
nada ainda aqui, nas configuracoes do PAC coloquei 1,5% no campo taxa de manuseio, mas na muda nada.
Na tela de compra do produto so aparece:
SEDEX: área com entrega temporariamente sujeita a prazo diferenciado.Entrega
SEDEX (Entrega em 1 dia útil): R$20,40
Retirar no localas medidas sao de uma simples caneca.
Peso 0.250 kg
Dimens?es 12 x 12 x 20 cmOi amigos nao tive sucesso, onde altero esse valor de 1,5%?
Vi uma outra solucao de colocoar faixa de CEPS só do brasil tentei tambem nao deu certo.
os CEPS estavam no formato pelo que entendi errado 01000 99999 sem o traco e os 3 ultimos digitos mudei:
01000-000 / 99999-999 tambem nao funcionou, deu mensagem de erro.
Esse caminho:
woocomerce/configuracoes/entregas/area de entregas -> tenho uma classe de entrega que se chama local, dentro dela tem os métodos pac, sedex etc e la tem o campo de inser??o de ceps
tem um campo chamado = [Regi?es da área] coloquei Brasil colocando ou tirando o Brasil no combo nao muda, continua vindo op??o de retirar no local e sedes, mas só essas!.Quando limito pela faixa de CEP para de funcionar!
00000-000
99999-999
vem mensagemEntrega [N?o existe nenhum método de entrega disponível. Por favor, certifique-se de que o seu endere?o está correto ou entre em contato conosco caso você precise de ajuda.]
Alguem tiver alguma ideia, de como resolver, obrigado
Forum: Fixing WordPress
In reply to: view post types on the siteI did, put this code in the index
$ Args = array ( ‘post_type’ => ‘products’, ‘posts_per_page’ => 10);
$ Loop = new WP_Query ($ args);
while ($ loop-> have_posts ()): $ loop-> the_post ();
the_title ();
echo ‘<div class = “entry-content”>’;
the_content ();
echo ‘</ div>’;
endwhile;He gave the loop but it came on home without a link to access the visualization of the page, as show the attributes of posttypes
example:
? product has price, details etc.Forum: Fixing WordPress
In reply to: view post types on the siteI will try this
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
the_title();
echo ‘<div class=”entry-content”>’;
the_content();
echo ‘</div>’;
endwhile;Forum: Fixing WordPress
In reply to: view post types on the siteI not yet understand I created the pages single-product.php, achive-product.php but as chamos them in the home, for example by displaying the products with price, details?
In the search appears but only the name and a photo.Forum: Fixing WordPress
In reply to: view post types on the siteWhat must the films, products and portfolio are visible on the site.
Forum: Fixing WordPress
In reply to: view post types on the siteHy
after I soon see the admin problem I want to know how do I appear on the site’s home that is for users to see?#TRECHO DOS PRODUTOS
add_action(‘init’, ‘produtos_register’);
function produtos_register() {
$labels = array(
‘name’ => _x(‘Produtos’, ‘post type general name’),
‘singular_name’ => _x(‘Produto’, ‘post type singular name’),
‘add_new’ => _x(‘Adicionar Novo’, ‘Produtos item’),
‘add_new_item’ => __(‘Adicionar Novo Produto’),
‘edit_item’ => __(‘Editar Produto’),
‘new_item’ => __(‘Novo Produto’),
‘view_item’ => __(‘Visualizar Produtos’),
‘search_items’ => __(‘Procurar Produtos’),
‘not_found’ => __(‘Nothing found’),
‘not_found_in_trash’ => __(‘Nothing found in Trash’),
‘parent_item_colon’ => ”
);$args = array(
‘labels’ => $labels,
‘public’ => true,
‘publicly_queryable’ => true,
‘show_ui’ => true,
‘query_var’ => true,
‘menu_icon’ => get_stylesheet_directory_uri() . ‘/article16.png’,
‘show_in_menu’ => true,
‘rewrite’ => true,
‘capability_type’ => ‘post’,
‘has_archive’ => true,
‘hierarchical’ => false,
‘menu_position’ => null,
‘supports’ => array(‘title’,’editor’,’thumbnail’)
);register_post_type( ‘produtos’ , $args );
}add_action(“admin_init”, “admin_init”);
function admin_init(){
add_meta_box(“Nome-meta”, “Nome”, “Nome”, “produtos”, “side”, “low”);
add_meta_box(“credits_meta”, “Detalhes”, “credits_meta”, “produtos”, “normal”, “low”);
}function Nome(){
global $post;
$custom = get_post_custom($post->ID);
$Nome = $custom[“Nome”][0];
?>
<label>Nome:</label>
<input name=”Nome” value=”<?php echo $Nome; ?>” />
<?php
}function credits_meta() {
global $post;
$custom = get_post_custom($post->ID);
$ID = $custom[“ID”][0];
$Nome = $custom[“Nome”][0];
$Preco = $custom[“Preco”][0];
$Detalhes = $custom[“Detalhes”][0];
?>
<p><label>ID:</label>
<input type=”text” name=”ID” value=”<?php echo $ID; ?>” /></p>
<p><label>Nome:</label>
<input type=”text” name=”Nome” value=”<?php echo $Nome; ?>” /></p>
<p><label>Preco:</label>
<input type=”text” name=”Preco” value=”<?php echo $Preco; ?>” /></p>
<p><label>Detalhes:</label>
<textarea cols=”50″ rows=”5″ name=”Detalhes”><?php echo $Detalhes; ?></textarea></p>
<?php
}add_action(‘save_post’, ‘save_details’);
function save_details(){
global $post;update_post_meta($post->ID, “ID”, $_POST[“ID”]);
update_post_meta($post->ID, “Nome”, $_POST[“Nome”]);
update_post_meta($post->ID, “Preco”, $_POST[“Preco”]);
update_post_meta($post->ID, “Detalhes”, $_POST[“Detalhes”]);
}add_action(“manage_posts_custom_column”, “produtos_custom_columns”);
add_filter(“manage_edit-produtos_columns”, “produtos_edit_columns”);function produtos_edit_columns($columns){
$columns = array(
“cb” => “<input type=\”checkbox\” />”,
“title” => “Produtos Title”,
“Detalhes” => “Detalhes”,
“Preco” => “Preco”,);
return $columns;
}
function produtos_custom_columns($column){
global $post;switch ($column) {
case “description”:
the_excerpt();
break;
case “year”:
$custom = get_post_custom();
echo $custom[“descricao”][0];
break;
case “skills”:
echo get_the_term_list($post->ID, ‘Skills’, ”, ‘, ‘,”);
break;
}
}#TRECHO DO PORTFOLIO
add_action(‘init’, ‘portfolio_register’);
function portfolio_register() {
$labels = array(
‘name’ => _x(‘My Portfolio’, ‘post type general name’),
‘singular_name’ => _x(‘Portfolio Item’, ‘post type singular name’),
‘add_new’ => _x(‘Add New’, ‘portfolio item’),
‘add_new_item’ => __(‘Add New Portfolio Item’),
‘edit_item’ => __(‘Edit Portfolio Item’),
‘new_item’ => __(‘New Portfolio Item’),
‘view_item’ => __(‘View Portfolio Item’),
‘search_items’ => __(‘Search Portfolio’),
‘not_found’ => __(‘Nothing found’),
‘not_found_in_trash’ => __(‘Nothing found in Trash’),
‘parent_item_colon’ => ”
);$args = array(
‘labels’ => $labels,
‘public’ => true,
‘publicly_queryable’ => true,
‘show_ui’ => true,
‘query_var’ => true,
‘menu_icon’ => get_stylesheet_directory_uri() . ‘/article16.png’,
‘rewrite’ => true,
‘capability_type’ => ‘post’,
‘hierarchical’ => false,
‘menu_position’ => null,
‘supports’ => array(‘title’,’editor’,’thumbnail’)
);register_post_type( ‘portfolio’ , $args );
}register_taxonomy(“Skills”, array(“portfolio”), array(“hierarchical” => true, “label” => “Skills”, “singular_label” => “Skill”, “rewrite” => true));
add_action(“admin_init”, “admin_initportfolio”);
function admin_initportfolio(){
add_meta_box(“year_completed-meta”, “Year Completed”, “year_completedportfolio”, “portfolio”, “side”, “low”);
add_meta_box(“credits_metaportfolio”, “Design & Build Credits”, “credits_metaportfolio”, “portfolio”, “normal”, “low”);
}function year_completedportfolio(){
global $post;
$custom = get_post_custom($post->ID);
$year_completedportfolio = $custom[“year_completedportfolio”][0];
?>
<label>Year:</label>
<input name=”year_completed” value=”<?php echo $year_completedportfolio; ?>” />
<?php
}function credits_metaportfolio() {
global $post;
$custom = get_post_custom($post->ID);
$designers = $custom[“designers”][0];
$developers = $custom[“developers”][0];
$producers = $custom[“producers”][0];
?>
<p><label>Designed By:</label>
<textarea cols=”50″ rows=”5″ name=”designers”><?php echo $designers; ?></textarea></p>
<p><label>Built By:</label>
<textarea cols=”50″ rows=”5″ name=”developers”><?php echo $developers; ?></textarea></p>
<p><label>Produced By:</label>
<textarea cols=”50″ rows=”5″ name=”producers”><?php echo $producers; ?></textarea></p>
<?php
}add_action(‘save_post’, ‘save_detailsportfolio’);
function save_detailsportfolio(){
global $post;update_post_meta($post->ID, “year_completedportfolio”, $_POST[“year_completedportfolio”]);
update_post_meta($post->ID, “designers”, $_POST[“designers”]);
update_post_meta($post->ID, “developers”, $_POST[“developers”]);
update_post_meta($post->ID, “producers”, $_POST[“producers”]);
}add_action(“manage_posts_custom_column”, “portfolio_custom_columns”);
add_filter(“manage_edit-portfolio_columns”, “portfolio_edit_columns”);function portfolio_edit_columns($columns){
$columns = array(
“cb” => “<input type=\”checkbox\” />”,
“title” => “Portfolio Title”,
“description” => “Description”,
“year” => “Year Completedportfolio”,
“skills” => “Skills”,
);return $columns;
}
function portfolio_custom_columns($column){
global $post;switch ($column) {
case “description”:
the_excerpt();
break;
case “year”:
$custom = get_post_custom();
echo $custom[“year_completedportfolio”][0];
break;
case “skills”:
echo get_the_term_list($post->ID, ‘Skills’, ”, ‘, ‘,”);
break;
}
}#FILMES
/**
* Adicionamos uma ac?§?£o no inicio do carregamento do WordPress
* atrav??s da fun?§?£o add_action( ‘init’ )
*/
add_action( ‘init’, ‘create_post_type_film’ );/**
* Esta ?? a fun?§?£o que ?? chamada pelo add_action()
*/
function create_post_type_film() {/**
* Labels customizados para o tipo de post
*
*/
$labels = array(
‘name’ => _x(‘Films’, ‘post type general name’),
‘singular_name’ => _x(‘Film’, ‘post type singular name’),
‘add_new’ => _x(‘Add New’, ‘film’),
‘add_new_item’ => __(‘Add New Film’),
‘edit_item’ => __(‘Edit Film’),
‘new_item’ => __(‘New Film’),
‘all_items’ => __(‘All Films’),
‘view_item’ => __(‘View Film’),
‘search_items’ => __(‘Search Films’),
‘not_found’ => __(‘No Films found’),
‘not_found_in_trash’ => __(‘No Films found in Trash’),
‘parent_item_colon’ => ”,
‘menu_name’ => ‘Films’
);/**
* Registamos o tipo de post film atrav??s desta fun?§?£o
* passando-lhe os labels e par?¢metros de controlo.
*/
register_post_type( ‘film’, array(
‘labels’ => $labels,
‘public’ => true,
‘publicly_queryable’ => true,
‘show_ui’ => true,
‘show_in_menu’ => true,
‘has_archive’ => ‘films’,
‘rewrite’ => array(
‘slug’ => ‘films’,
‘with_front’ => false,
),
‘capability_type’ => ‘post’,
‘has_archive’ => true,
‘hierarchical’ => false,
‘menu_position’ => null,
‘supports’ => array(‘title’,’editor’,’author’,’thumbnail’,’excerpt’,’comments’)
)
);/**
* Registamos a categoria de filmes para o tipo de post film
*/
register_taxonomy( ‘film_category’, array( ‘film’ ), array(
‘hierarchical’ => true,
‘label’ => __( ‘Film Category’ ),
‘labels’ => array( // Labels customizadas
‘name’ => _x( ‘Categories’, ‘taxonomy general name’ ),
‘singular_name’ => _x( ‘Category’, ‘taxonomy singular name’ ),
‘search_items’ => __( ‘Search Categories’ ),
‘all_items’ => __( ‘All Categories’ ),
‘parent_item’ => __( ‘Parent Category’ ),
‘parent_item_colon’ => __( ‘Parent Category:’ ),
‘edit_item’ => __( ‘Edit Category’ ),
‘update_item’ => __( ‘Update Category’ ),
‘add_new_item’ => __( ‘Add New Category’ ),
‘new_item_name’ => __( ‘New Category Name’ ),
‘menu_name’ => __( ‘Category’ ),
),
‘show_ui’ => true,
‘show_in_tag_cloud’ => true,
‘query_var’ => true,
‘rewrite’ => array(
‘slug’ => ‘films/categories’,
‘with_front’ => false,
),
)
);/**
* Esta fun?§?£o associa tipos de categorias com tipos de posts.
* Aqui associamos as tags ao tipo de post film.
*/
register_taxonomy_for_object_type( ‘tags’, ‘film’ );}